Not use the deprecated argument
`project` argument is deprecated in keystoneclient for V3 API, and use `default_project` instead, should use `default_project` as the argument name in the openstackclient accordingly. Change-Id: Ib9d70801c933a184afcdab75204393efa764fa87 Closes-Bug: #1462389
This commit is contained in:
parent
56163aa7bc
commit
7cf779004e
@ -369,7 +369,7 @@ class SetUser(command.Command):
|
||||
if parsed_args.project:
|
||||
project_id = utils.find_resource(
|
||||
identity_client.projects, parsed_args.project).id
|
||||
kwargs['project'] = project_id
|
||||
kwargs['default_project'] = project_id
|
||||
kwargs['enabled'] = user.enabled
|
||||
if parsed_args.enable:
|
||||
kwargs['enabled'] = True
|
||||
|
@ -885,7 +885,7 @@ class TestUserSet(TestUser):
|
||||
# Set expected values
|
||||
kwargs = {
|
||||
'enabled': True,
|
||||
'project': identity_fakes.project_id,
|
||||
'default_project': identity_fakes.project_id,
|
||||
}
|
||||
# UserManager.update(user, name=, domain=, project=, password=,
|
||||
# email=, description=, enabled=, default_project=)
|
||||
|
Loading…
Reference in New Issue
Block a user