Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Add StorPerf Graphite"
[releng.git]
/
utils
/
test
/
testapi
/
opnfv_testapi
/
resources
/
models.py
diff --git
a/utils/test/testapi/opnfv_testapi/resources/models.py
b/utils/test/testapi/opnfv_testapi/resources/models.py
index
6f04cc2
..
e70a6ed
100644
(file)
--- a/
utils/test/testapi/opnfv_testapi/resources/models.py
+++ b/
utils/test/testapi/opnfv_testapi/resources/models.py
@@
-61,11
+61,11
@@
class ModelBase(object):
'{} has no attribute {}'.format(cls.__name__, k))
value = v
if isinstance(v, dict) and k in attr_parser:
'{} has no attribute {}'.format(cls.__name__, k))
value = v
if isinstance(v, dict) and k in attr_parser:
- value = attr_parser[k].from_dict(v)
+ value = attr_parser[k].from_dict
_with_raise
(v)
elif isinstance(v, list) and k in attr_parser:
value = []
for item in v:
elif isinstance(v, list) and k in attr_parser:
value = []
for item in v:
- value.append(attr_parser[k].from_dict(item))
+ value.append(attr_parser[k].from_dict
_with_raise
(item))
t.__setattr__(k, value)
t.__setattr__(k, value)