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: the resource's parameter 'parentId' is resourcepool ID
[pti/o2.git]
/
o2ims
/
views
/
ocloud_route.py
diff --git
a/o2ims/views/ocloud_route.py
b/o2ims/views/ocloud_route.py
index
00fe520
..
d6913a9
100644
(file)
--- a/
o2ims/views/ocloud_route.py
+++ b/
o2ims/views/ocloud_route.py
@@
-128,6
+128,9
@@
class ResourcesListRouter(Resource):
kwargs['resourceTypeName'] = args.resourceTypeName
if args.parentId is not None:
kwargs['parentId'] = args.parentId
+ if args.parentId.lower() == 'null':
+ kwargs['parentId'] = None
+
return ocloud_view.resources(resourcePoolID, bus.uow, **kwargs)