CORD-2050: Automatically bring up VMs for service instances
Change-Id: I8cf7067fa1319c210c7ab638aa788fc179247933
diff --git a/xos/tosca/resources/vmmetenant.py b/xos/tosca/resources/vmmetenant.py
index b1556c2..7fb6d46 100644
--- a/xos/tosca/resources/vmmetenant.py
+++ b/xos/tosca/resources/vmmetenant.py
@@ -27,15 +27,15 @@
provider_name = self.get_requirement("tosca.relationships.TenantOfService", throw_exception=throw_exception)
if provider_name:
- args["provider_service"] = self.get_xos_object(Service, throw_exception=throw_exception, name=provider_name)
+ args["owner"] = self.get_xos_object(Service, throw_exception=throw_exception, name=provider_name)
return args
def get_existing_objs(self):
args = self.get_xos_args(throw_exception=False)
- provider_service = args.get("provider", None)
- if provider_service:
- return [ self.get_xos_object(provider_service=provider_service) ]
+ owner = args.get("provider", None)
+ if owner:
+ return [ self.get_xos_object(owner=owner) ]
return []
def postprocess(self, obj):