isoformat instead of deprecated timeutils.strtime
use isoformat() instead of deprecated oslo.timeutils.strtime() ref: https://github.com/openstack/oslo.utils/blob/master/oslo_utils/timeutils.py#L81 Change-Id: I3f0c7fe421add6880c2a000e2b052f0aeda1c4dc
This commit is contained in:
parent
d0d908e7ab
commit
b370ee5894
@ -481,7 +481,7 @@ def register_extension(vim, key, type, label='OpenStack',
|
|||||||
desc.label = label
|
desc.label = label
|
||||||
desc.summary = summary
|
desc.summary = summary
|
||||||
os_ext.description = desc
|
os_ext.description = desc
|
||||||
os_ext.lastHeartbeatTime = timeutils.strtime()
|
os_ext.lastHeartbeatTime = timeutils.utcnow().isoformat()
|
||||||
vim.client.service.RegisterExtension(extension_manager, os_ext)
|
vim.client.service.RegisterExtension(extension_manager, os_ext)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user