From 746d316b6c14885dc0fd8e0784f9ab88050cdbeb Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Fri, 12 Oct 2018 03:33:37 +0000 Subject: Fix vimid typo when updating multi-regions in AAI Change-Id: I51cce54c47ab34b4c4c07efc2c9b8c20defe4519 Issue-ID: MULTICLOUD-364 Signed-off-by: Xiaohua Zhang --- windriver/titanium_cloud/registration/views/registration.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/windriver/titanium_cloud/registration/views/registration.py b/windriver/titanium_cloud/registration/views/registration.py index 57888456..c5620618 100644 --- a/windriver/titanium_cloud/registration/views/registration.py +++ b/windriver/titanium_cloud/registration/views/registration.py @@ -262,7 +262,8 @@ class APIv1Registry(newton_registration.Registry): self._logger.info("create a cloud region: %s,%s,%s" % (cloud_owner,gen_cloud_region_id,regionid)) self._update_cloud_region(cloud_owner, gen_cloud_region_id, regionid, viminfo) - super(APIv1Registry, self).post(request, vimid) + new_vimid = extsys.encode_vim_id(cloud_owner, gen_cloud_region_id) + super(APIv1Registry, self).post(request, new_vimid) # update the specified region -- cgit 1.2.3-korg