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
index 174f709..7ee2df2 100644 (file)
@@ -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
-    description = "A interface resource of the physical server"
+    description = "An interface resource of the physical server"
     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