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 deploymentManager profiles not set in conf file
[pti/o2.git]
/
o2common
/
domain
/
base.py
diff --git
a/o2common/domain/base.py
b/o2common/domain/base.py
index
e56672b
..
128f950
100644
(file)
--- a/
o2common/domain/base.py
+++ b/
o2common/domain/base.py
@@
-39,13
+39,13
@@
class Serializer(object):
def serialize(self):
try:
def serialize(self):
try:
-
#
d = {c: getattr(self, c) for c in inspect(self).attrs.keys()}
+ 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()}
+ return d
+
#
return {c: getattr(self, c) for c in inspect(self).attrs.keys()}
except NoInspectionAvailable:
return self.__dict__
except NoInspectionAvailable:
return self.__dict__