summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-01-08 13:39:27 +0000
committerGerrit Code Review <review@openstack.org>2018-01-08 13:39:27 +0000
commit17da16f58aa8ba63f8f309c7fc46e897b2103e2c (patch)
tree8ab9b2139bf2fd1371b4457d4394ee44aef19ef0
parente85b1cadb35b184d6ad235b0e3c1d0bb5a1e2be3 (diff)
parent42ad072babc10af16576baff599e7a6bbcf6e435 (diff)
Merge "Fix usage of method isotime"
-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 12ee10f..1100049 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