Fix vimid typo when updating multi-regions in AAI 27/70327/1
authorXiaohua Zhang <xiaohua.zhang@windriver.com>
Fri, 12 Oct 2018 03:33:37 +0000 (03:33 +0000)
committerXiaohua Zhang <xiaohua.zhang@windriver.com>
Fri, 12 Oct 2018 03:33:37 +0000 (03:33 +0000)
Change-Id: I51cce54c47ab34b4c4c07efc2c9b8c20defe4519
Issue-ID: MULTICLOUD-364
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
windriver/titanium_cloud/registration/views/registration.py

index 5788845..c562061 100644 (file)
@@ -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