Skip to content

Commit 7cf7790

Browse files
committed
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
1 parent 56163aa commit 7cf7790

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openstackclient/identity/v3/user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def take_action(self, parsed_args):
369369
if parsed_args.project:
370370
project_id = utils.find_resource(
371371
identity_client.projects, parsed_args.project).id
372-
kwargs['project'] = project_id
372+
kwargs['default_project'] = project_id
373373
kwargs['enabled'] = user.enabled
374374
if parsed_args.enable:
375375
kwargs['enabled'] = True

openstackclient/tests/identity/v3/test_user.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ def test_user_set_project(self):
885885
# Set expected values
886886
kwargs = {
887887
'enabled': True,
888-
'project': identity_fakes.project_id,
888+
'default_project': identity_fakes.project_id,
889889
}
890890
# UserManager.update(user, name=, domain=, project=, password=,
891891
# email=, description=, enabled=, default_project=)

0 commit comments

Comments
 (0)