context: Replace final use of user_domain

Resolves the following warning:

  DeprecationWarning: Property 'user_domain' has moved to
  'user_domain_id' in version '2.6' and will be removed in version '3.0'

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Change-Id: Iff7857e45942babc1f91a75365a00c5eb7ac59b3
This commit is contained in:
Stephen Finucane 2023-06-18 17:01:01 +01:00
parent 3896d8536a
commit 46f301c964
2 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ class RequestContext(context.RequestContext):
return generic.Password(username=self.username,
password=self.password,
project_id=self.project_id,
user_domain_id=self.user_domain,
user_domain_id=self.user_domain_id,
auth_url=self.keystone_v3_endpoint)
if self.auth_token:

View File

@ -504,7 +504,7 @@ class KeystoneClientTest(common.HeatTestCase):
ctx.auth_token = None
ctx.password = 'password'
ctx.trust_id = None
ctx.user_domain = 'adomain123'
ctx.user_domain_id = 'adomain123'
heat_ks_client = heat_keystoneclient.KeystoneClient(ctx)
client = heat_ks_client.client
self.assertIsNotNone(client)