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:
Dave Chen 2015-06-05 22:43:08 +08:00
parent 56163aa7bc
commit 7cf779004e
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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=)