Merge "Fix time usage in unit tests for agent power interface"

This commit is contained in:
Zuul 2020-08-13 14:58:33 +00:00 committed by Gerrit Code Review
commit df9ce79f23

View File

@ -30,7 +30,7 @@ class AgentPowerTest(db_base.DbTestCase):
self.config(fast_track=True, group='deploy')
self.power = agent_power.AgentPower()
dii = {
'agent_last_heartbeat': datetime.datetime.now().strftime(
'agent_last_heartbeat': datetime.datetime.utcnow().strftime(
"%Y-%m-%dT%H:%M:%S.%f"),
'deployment_reboot': True,
'agent_url': 'http://url',