From ddd158d4fb242dcc035609f5879d71865a29c0e5 Mon Sep 17 00:00:00 2001 From: Yichen Wang Date: Wed, 21 Oct 2015 23:20:43 -0700 Subject: [PATCH] Enhance the single/dual cloud mode detection logic Change-Id: Ia076bc483535f43ecbb2a0b3881b6fb27b047583 --- kloudbuster/kloudbuster.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kloudbuster/kloudbuster.py b/kloudbuster/kloudbuster.py index 4f2aad3..35595fa 100755 --- a/kloudbuster/kloudbuster.py +++ b/kloudbuster/kloudbuster.py @@ -227,7 +227,8 @@ class KloudBuster(object): else: self.tenants_list = {'server': None, 'client': None} # TODO(check on same auth_url instead) - self.single_cloud = True if server_cred == client_cred else False + self.single_cloud = True\ + if server_cred.get_credentials() == client_cred.get_credentials() else False # Automatically enable the floating IP for server cloud under dual-cloud mode if not self.single_cloud and not self.server_cfg['use_floatingip']: self.server_cfg['use_floatingip'] = True