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:
parent
3896d8536a
commit
46f301c964
@ -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:
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user