summaryrefslogtreecommitdiffstats
path: root/share/newton_base/registration/registration.py
diff options
context:
space:
mode:
authorHaibin Huang <haibin.huang@intel.com>2019-04-29 10:41:25 +0800
committerHaibin Huang <haibin.huang@intel.com>2019-04-29 10:44:04 +0800
commit8cd7378736fa89f7df943283ff328441b551e0e0 (patch)
treed4abdc3b701307f27719cb63d3f1902508981395 /share/newton_base/registration/registration.py
parentfd2489a6132b34010d4e3d9503d06d52c9be3b1c (diff)
Fix unexpected during registration without privilege1.3.1
Change-Id: Icd38af48fe3d2567e54ce5aebe902f5e61eb5999 Issue-ID: MULTICLOUD-595 Signed-off-by: Haibin Huang <haibin.huang@intel.com>
Diffstat (limited to 'share/newton_base/registration/registration.py')
-rw-r--r--share/newton_base/registration/registration.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/newton_base/registration/registration.py b/share/newton_base/registration/registration.py
index 53893b36..5656c6b6 100644
--- a/share/newton_base/registration/registration.py
+++ b/share/newton_base/registration/registration.py
@@ -463,7 +463,7 @@ class RegistryHelper(MultiCloudAAIHelper):
self._update_resoure(
cloud_owner, cloud_region_id, tenant['id'],
tenant_info, "tenant")
- return (0, "succeed")
+ return 0, "succeed"
except VimDriverNewtonException as e:
self._logger.error(
"VimDriverNewtonException: status:%s, response:%s"
@@ -489,6 +489,8 @@ class RegistryHelper(MultiCloudAAIHelper):
cloud_owner, cloud_region_id, tenant['id'],
tenant_info, "tenant")
+ return 0, "succeed"
+
except Exception as ex:
self._logger.error(traceback.format_exc())
return (