Fix: the resource's parameter 'parentId' is resourcepool ID 11/7611/1
authorZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 25 Jan 2022 05:59:00 +0000 (13:59 +0800)
committerZhang Rong(Jon) <rong.zhang@windriver.com>
Tue, 25 Jan 2022 05:59:33 +0000 (13:59 +0800)
commit7b80a6162b616d1cd33d3af4367abfb8d56622d8
tree481696afaf2a172fed8b50239ae789a82c91b9bf
parentdf31a02911f55d292188ca514c3a30fface9c8a6
Fix: the resource's parameter 'parentId' is resourcepool ID

1. The resource's parameter 'parentId' should be resource ID, now it uses resourcepool ID, fix it to resource ID, and the root resource set to None.
2. Make the query with parentId=null can search the root resources.

Signed-off-by: Zhang Rong(Jon) <rong.zhang@windriver.com>
Change-Id: I3eb2f9569d6655755cce25b4464b66c66e5faf51
o2ims/service/auditor/pserver_handler.py
o2ims/views/ocloud_route.py