summaryrefslogtreecommitdiffstats
path: root/share/common/msapi
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-08-28 03:47:27 +0000
committerBin Yang <bin.yang@windriver.com>2019-08-28 03:47:27 +0000
commitd0c33a679aa6e058bff58a07b320b78ba63090a5 (patch)
tree849d36f8478a1c60b53be1725d2f20644e6328e5 /share/common/msapi
parent24f743142abe736e88fe7f4bf69511d2de823ab6 (diff)
Fix unregistration error
Change-Id: I907239e0d3f54bdd8cab6103cb3525626e629e39 Issue-ID: MULTICLOUD-793 Signed-off-by: Bin Yang <bin.yang@windriver.com>
Diffstat (limited to 'share/common/msapi')
-rw-r--r--share/common/msapi/helper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/common/msapi/helper.py b/share/common/msapi/helper.py
index 50ef3407..7cfe77bd 100644
--- a/share/common/msapi/helper.py
+++ b/share/common/msapi/helper.py
@@ -347,7 +347,7 @@ class MultiCloudThreadHelper(object):
worker = item.get("worker", None)
payload = item.get("payload", None)
try:
- item["status"] = worker(*payload) or 0
+ returncode, item["status"] = worker(*payload) or (0, "Succeed")
except Exception as e:
item["status"] = str(e)
cache_item_for_query = {