[CORD-2031] Migration of vHSS service to 4.1
Change-Id: Iaab41b6cbfa8fb5036ae04bb9f30f3a55bcdbd1e
(cherry picked from commit c8c6ddd43f0657c2146ac4a8b5ff03141b6375db)
diff --git a/xos/tosca/resources/vhssvendor.py b/xos/tosca/resources/vhssvendor.py
index cc01d06..7ba8024 100644
--- a/xos/tosca/resources/vhssvendor.py
+++ b/xos/tosca/resources/vhssvendor.py
@@ -13,7 +13,7 @@
# limitations under the License.
from xosresource import XOSResource
-from core.models import Tenant
+from core.models import ServiceInstance
from services.vhss.models import VHSSVendor
class XOSVHSSVendor(XOSResource):
@@ -27,7 +27,7 @@
tenant_name = self.get_requirement("tosca.relationships.VendorOfTenant", throw_exception=throw_exception)
if tenant_name:
- args["provider_tenant"] = self.get_xos_object(Tenant, throw_exception=throw_exception, name=tenant_name)
+ args["provider_tenant"] = self.get_xos_object(ServiceInstance, throw_exception=throw_exception, name=tenant_name)
return args