Fix issue of heatbridge 53/78453/1
authorXiaohua Zhang <xiaohua.zhang@windriver.com>
Thu, 14 Feb 2019 09:24:06 +0000 (09:24 +0000)
committerXiaohua Zhang <xiaohua.zhang@windriver.com>
Thu, 14 Feb 2019 09:24:06 +0000 (09:24 +0000)
Change-Id: I91d6086d514cc481e2574bd3e6c6b324d708d092
Issue-ID: MULTICLOUD-479
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
ocata/ocata/resource/views/infra_workload.py
pike/pike/resource/views/infra_workload.py

index 0a3a574..ab464da 100644 (file)
@@ -203,7 +203,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
index 0a3a574..ab464da 100644 (file)
@@ -203,7 +203,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