Explorar o código

Updated cb tests for azure and changed the authenticate method in provider to check security groups instead of keypairs

vikramdoda %!s(int64=9) %!d(string=hai) anos
pai
achega
f2df11c980
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cloudbridge/cloud/base/provider.py

+ 1 - 1
cloudbridge/cloud/base/provider.py

@@ -100,7 +100,7 @@ class BaseCloudProvider(CloudProvider):
         """
         log.debug("Checking if cloud credential works...")
         try:
-            self.security.key_pairs.list()
+            self.security.security_groups.list()
             return True
         except Exception as e:
             log.exception("ProviderConnectionException occurred")