Code Review
/
pti
/
o2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix INF-319 failed to probe inventory resource
[pti/o2.git]
/
o2common
/
domain
/
base.py
diff --git
a/o2common/domain/base.py
b/o2common/domain/base.py
index
f419f23
..
128f950
100644
(file)
--- a/
o2common/domain/base.py
+++ b/
o2common/domain/base.py
@@
-40,10
+40,10
@@
class Serializer(object):
def serialize(self):
try:
d = {c: getattr(self, c) for c in inspect(self).attrs.keys()}
def serialize(self):
try:
d = {c: getattr(self, c) for c in inspect(self).attrs.keys()}
- if 'createtime' in d:
- d['createtime'] = d['createtime'].isoformat()
- if 'updatetime' in d:
- d['updatetime'] = d['updatetime'].isoformat()
+
#
if 'createtime' in d:
+
#
d['createtime'] = d['createtime'].isoformat()
+
#
if 'updatetime' in d:
+
#
d['updatetime'] = d['updatetime'].isoformat()
return d
# return {c: getattr(self, c) for c in inspect(self).attrs.keys()}
except NoInspectionAvailable:
return d
# return {c: getattr(self, c) for c in inspect(self).attrs.keys()}
except NoInspectionAvailable: