diff options
author | 2018-09-20 09:52:25 +0000 | |
---|---|---|
committer | 2018-09-20 09:52:25 +0000 | |
commit | ea803b961e4d5ae108183ebd2b5c6eaa1a1be4d6 (patch) | |
tree | ac2783e6b5728b5f2b538cd5f9a347a29f245314 /windriver/titanium_cloud/resource/views | |
parent | d6d8cbf451a596aa7cbaa240fbcafb288a3494bc (diff) |
Fix bug of infra_workload
Remove region filter for identity endpoint
Change-Id: I944b42926b4c5d5de8799de9c68b2b7e8bac5017
Issue-ID: MULTICLOUD-361
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/resource/views')
-rw-r--r-- | windriver/titanium_cloud/resource/views/infra_workload.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/windriver/titanium_cloud/resource/views/infra_workload.py b/windriver/titanium_cloud/resource/views/infra_workload.py index 100496f9..49f8f2b5 100644 --- a/windriver/titanium_cloud/resource/views/infra_workload.py +++ b/windriver/titanium_cloud/resource/views/infra_workload.py @@ -270,7 +270,7 @@ class InfraWorkload(APIView): #find and update resources transactions = [] for resource in resources: - if resource.get('resource_status', None) != "CREATED_COMPLETE": + if resource.get('resource_status', None) != "CREATE_COMPLETE": continue if resource.get('resource_type', None) == 'OS::Nova::Server': # retrieve vserver details @@ -325,10 +325,10 @@ class InfraWorkload(APIView): if resource.get('resource_status', None) != "CREATE_COMPLETE": continue if resource.get('resource_type', None) == 'OS::Neutron::Port': - # retrieve vserver details + # retrieve vport details service_type = "network" resource_uri = "/v2.0/ports/%s" % (resource['physical_resource_id']) - self._logger.info("retrieve vserver detail, URI:%s" % resource_uri) + self._logger.info("retrieve vport detail, URI:%s" % resource_uri) retcode, content, os_status = helper.MultiCloudServiceHelper(cloud_owner, regionid, v2_token_resp_json, service_type, resource_uri, None, "GET") self._logger.debug(" resp data:%s" % content) |