From b370ee5894423fe8d95631158585b60508c2dc29 Mon Sep 17 00:00:00 2001 From: Javeme Date: Thu, 17 Dec 2015 14:36:30 +0800 Subject: [PATCH] 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 --- oslo_vmware/vim_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo_vmware/vim_util.py b/oslo_vmware/vim_util.py index e8b6e11..511daf6 100644 --- a/oslo_vmware/vim_util.py +++ b/oslo_vmware/vim_util.py @@ -481,7 +481,7 @@ def register_extension(vim, key, type, label='OpenStack', desc.label = label desc.summary = summary os_ext.description = desc - os_ext.lastHeartbeatTime = timeutils.strtime() + os_ext.lastHeartbeatTime = timeutils.utcnow().isoformat() vim.client.service.RegisterExtension(extension_manager, os_ext)