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:
|
if parsed_args.project:
|
||||||
project_id = utils.find_resource(
|
project_id = utils.find_resource(
|
||||||
identity_client.projects, parsed_args.project).id
|
identity_client.projects, parsed_args.project).id
|
||||||
kwargs['project'] = project_id
|
kwargs['default_project'] = project_id
|
||||||
kwargs['enabled'] = user.enabled
|
kwargs['enabled'] = user.enabled
|
||||||
if parsed_args.enable:
|
if parsed_args.enable:
|
||||||
kwargs['enabled'] = True
|
kwargs['enabled'] = True
|
||||||
|
@ -885,7 +885,7 @@ class TestUserSet(TestUser):
|
|||||||
# Set expected values
|
# Set expected values
|
||||||
kwargs = {
|
kwargs = {
|
||||||
'enabled': True,
|
'enabled': True,
|
||||||
'project': identity_fakes.project_id,
|
'default_project': identity_fakes.project_id,
|
||||||
}
|
}
|
||||||
# UserManager.update(user, name=, domain=, project=, password=,
|
# UserManager.update(user, name=, domain=, project=, password=,
|
||||||
# email=, description=, enabled=, default_project=)
|
# email=, description=, enabled=, default_project=)
|
||||||
|
Loading…
Reference in New Issue
Block a user