cloud: Don't raise error on missing domain
We inverted logic in I3f543b82ec6b663e6a0dbabba323963c5b24e378. Revert that change. Note that we don't add any new tests. We already had a test for this. It's simply not running right now due to the issue we're addressing separately, in change I3fc33a26b0d7f057d7bd6a094fc2ceeaa88f177b. Change-Id: I0d828e0871bd8b4c845694ee94fde0a167f73709 Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
parent
4892f9d19a
commit
b753d4b849
@ -854,7 +854,7 @@ class IdentityCloudMixin(openstackcloud._OpenStackCloudMixin):
|
|||||||
wrong during the OpenStack API call.
|
wrong during the OpenStack API call.
|
||||||
"""
|
"""
|
||||||
if domain_id is None:
|
if domain_id is None:
|
||||||
return self.identity.find_domain(name_or_id, ignore_missing=False)
|
return self.identity.find_domain(name_or_id, ignore_missing=True)
|
||||||
else:
|
else:
|
||||||
return self.identity.get_domain(domain_id)
|
return self.identity.get_domain(domain_id)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user