summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenghuiyu <yuchenghui@unionpay.com>2017-09-08 18:47:13 +0800
committerchenghuiyu <yuchenghui@unionpay.com>2017-09-08 18:47:13 +0800
commit42ad072babc10af16576baff599e7a6bbcf6e435 (patch)
treead865036efb902dcdc9b7eb31d00a6e66d90e679
parentb26e22499c74a5f3077078c2f9524d6432714985 (diff)
Fix usage of method isotime
Function 'oslo_utils.timeutils.isotime()' is deprecated in version '1.6' and will be removed in a future version. Change-Id: Ibfc71882907677d5c2d4e7237ba95ff52e538979
Notes
Notes (review): Code-Review+2: Fabio Verboso <fverboso@unime.it> Code-Review+1: Jon Schlueter <jschluet@redhat.com> Workflow+1: Fabio Verboso <fverboso@unime.it> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Mon, 08 Jan 2018 13:39:27 +0000 Reviewed-on: https://review.openstack.org/502033 Project: openstack/iotronic Branch: refs/heads/master
-rw-r--r--iotronic/objects/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iotronic/objects/utils.py b/iotronic/objects/utils.py
index bc57c3d..e62e55d 100644
--- a/iotronic/objects/utils.py
+++ b/iotronic/objects/utils.py
@@ -112,7 +112,7 @@ def dt_serializer(name):
112 112
113 def serializer(self, name=name): 113 def serializer(self, name=name):
114 if getattr(self, name) is not None: 114 if getattr(self, name) is not None:
115 return timeutils.isotime(getattr(self, name)) 115 return getattr(self, name).isoformat()
116 else: 116 else:
117 return None 117 return None
118 return serializer 118 return serializer