From 6598c5d4717476792f71192a95a2704e08f1cbc2 Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Thu, 14 Feb 2019 09:24:06 +0000 Subject: Fix issue of heatbridge Change-Id: I91d6086d514cc481e2574bd3e6c6b324d708d092 Issue-ID: MULTICLOUD-479 Signed-off-by: Xiaohua Zhang --- ocata/ocata/resource/views/infra_workload.py | 2 +- pike/pike/resource/views/infra_workload.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ocata/ocata/resource/views/infra_workload.py b/ocata/ocata/resource/views/infra_workload.py index 0a3a5743..ab464da8 100644 --- a/ocata/ocata/resource/views/infra_workload.py +++ b/ocata/ocata/resource/views/infra_workload.py @@ -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 diff --git a/pike/pike/resource/views/infra_workload.py b/pike/pike/resource/views/infra_workload.py index 0a3a5743..ab464da8 100644 --- a/pike/pike/resource/views/infra_workload.py +++ b/pike/pike/resource/views/infra_workload.py @@ -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 -- cgit 1.2.3-korg