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
Add get detail of a resource to API; remove the dependency of the domain in the view...
[pti/o2.git]
/
o2ims
/
service
/
auditor
/
pserver_if_handler.py
diff --git
a/o2ims/service/auditor/pserver_if_handler.py
b/o2ims/service/auditor/pserver_if_handler.py
index
174f709
..
7ee2df2
100644
(file)
--- a/
o2ims/service/auditor/pserver_if_handler.py
+++ b/
o2ims/service/auditor/pserver_if_handler.py
@@
-95,9
+95,10
@@
def create_by(stxobj: StxGenericModel, parent: Resource, resourcetype_id: str)\
resourcepool_id = parent.resourcePoolId
parent_id = parent.resourceId
gAssetId = '' # TODO: global ID
resourcepool_id = parent.resourcePoolId
parent_id = parent.resourceId
gAssetId = '' # TODO: global ID
- description = "A interface resource of the physical server"
+ description = "A
n
interface resource of the physical server"
resource = Resource(stxobj.id, resourcetype_id, resourcepool_id,
resource = Resource(stxobj.id, resourcetype_id, resourcepool_id,
- parent_id, gAssetId, stxobj.content, description)
+ stxobj.name, parent_id, gAssetId, stxobj.content,
+ description)
resource.createtime = stxobj.createtime
resource.updatetime = stxobj.updatetime
resource.hash = stxobj.hash
resource.createtime = stxobj.createtime
resource.updatetime = stxobj.updatetime
resource.hash = stxobj.hash