fix v2 fetch of Cloud Provider ID

Corrects a bug that caused retrieval of the keystone ID to be used as
the Cloud Provider ID to fail when using keystone v2.

Change-Id: Id378e8ff31472fd2eb194fd59ecd8042297229d8
Closes-Bug: #1497067
This commit is contained in:
Matthew Edmonds
2015-09-17 22:23:59 -04:00
committed by Paul Van Eck
parent ecba34b7dd
commit d16248ff02
2 changed files with 10 additions and 14 deletions

View File

@@ -76,8 +76,8 @@ class TestRefstackClient(unittest.TestCase):
'id': 'test-id'}
self.mock_ks2_client = MagicMock(
name='ks_client',
**{'tokens.authenticate.return_value.serviceCatalog':
[self.mock_identity_service_v2]}
**{'auth_ref':
{'serviceCatalog': [self.mock_identity_service_v2]}}
)
self.mock_ks3_client = MagicMock(
name='ks_client',