X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=o2ims%2Fviews%2Focloud_view.py;h=56f970d23ce9d5430f11f97942d00a6193c1a78c;hb=refs%2Fchanges%2F26%2F8826%2F2;hp=83be1780a756adace82e7ebc89d5a29e65920035;hpb=ad15ec6b732868c3ecedb9cd84450462bafa3320;p=pti%2Fo2.git diff --git a/o2ims/views/ocloud_view.py b/o2ims/views/ocloud_view.py index 83be178..56f970d 100644 --- a/o2ims/views/ocloud_view.py +++ b/o2ims/views/ocloud_view.py @@ -20,6 +20,7 @@ from datetime import datetime import shutil from o2common.service import unit_of_work +from o2ims.domain import ocloud from o2ims.views.ocloud_dto import SubscriptionDTO from o2ims.domain.subscription_obj import Subscription @@ -119,13 +120,13 @@ def deployment_manager_one(deploymentManagerId: str, profile_data = result.pop("profile", None) result['profileName'] = profile - if "default" == profile: + if ocloud.DeploymentManagerProfileDefault == profile: pass - elif "sol018" == profile: + elif ocloud.DeploymentManagerProfileSOL018 == profile: result['deploymentManagementServiceEndpoint'] = \ profile_data['cluster_api_endpoint'] result['profileData'] = profile_data - elif "sol018_helmcli" == profile: + elif ocloud.DeploymentManagerProfileSOL018HelmCLI == profile: result['deploymentManagementServiceEndpoint'] = \ profile_data['cluster_api_endpoint']