Fix registration error 63/102663/1
authorBin Yang <bin.yang@windriver.com>
Sun, 1 Mar 2020 09:50:09 +0000 (17:50 +0800)
committerBin Yang <bin.yang@windriver.com>
Sun, 1 Mar 2020 09:50:09 +0000 (17:50 +0800)
Change-Id: I5b6b0668488ec87ec59d4cb8f33b7904a466c045
Issue-ID: MULTICLOUD-1003
Signed-off-by: Bin Yang <bin.yang@windriver.com>
share/starlingx_base/registration/registration.py

index 4d5e1f3..6064b5e 100644 (file)
@@ -474,7 +474,7 @@ class RegistryHelper(newton_registration.RegistryHelper):
             cloud_extra_info = viminfo.get("cloud_extra_info_json",{})
 
             # check if a k8s platform
-            if VimDriverUtils.check_k8s_cluster(viminfo):
+            if not VimDriverUtils.check_k8s_cluster(viminfo):
                 self._logger.info("%s, %s is not a k8s platform"
                     % (cloud_owner, cloud_region_id))
                 return