From 8cd7378736fa89f7df943283ff328441b551e0e0 Mon Sep 17 00:00:00 2001 From: Haibin Huang Date: Mon, 29 Apr 2019 10:41:25 +0800 Subject: Fix unexpected during registration without privilege Change-Id: Icd38af48fe3d2567e54ce5aebe902f5e61eb5999 Issue-ID: MULTICLOUD-595 Signed-off-by: Haibin Huang --- share/newton_base/registration/registration.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'share/newton_base') 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 ( -- cgit 1.2.3-korg