Merge "Add cloud to warning about domain related config"
This commit is contained in:
commit
471d7382fb
|
@ -94,8 +94,9 @@ class OSC_Config(config.OpenStackConfig):
|
|||
]
|
||||
for prop in domain_props:
|
||||
if config['auth'].pop(prop, None) is not None:
|
||||
LOG.warning("Ignoring domain related config " +
|
||||
prop + " because identity API version is 2.0")
|
||||
LOG.warning("Ignoring domain related config %s for %s"
|
||||
"because identity API version is 2.0" %
|
||||
(prop, config['cloud']))
|
||||
return config
|
||||
|
||||
def _auth_default_domain(self, config):
|
||||
|
|
|
@ -151,6 +151,7 @@ class TestOSCConfig(utils.TestCase):
|
|||
|
||||
def test_auth_v2_ignore_v3(self):
|
||||
config = {
|
||||
'cloud': 'testcloud',
|
||||
'identity_api_version': '2',
|
||||
'auth_type': 'v2password',
|
||||
'auth': {
|
||||
|
|
Loading…
Reference in New Issue