identity: Add missing user argument

Change-Id: Ifd2b32e97d1f5fd426f333da13852a8bb6821f1b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #2110765
This commit is contained in:
Stephen Finucane
2025-05-15 16:02:28 +01:00
parent 9de5e58bc8
commit e26b447925
2 changed files with 20 additions and 7 deletions
openstackclient
identity
tests
unit
identity

@ -659,6 +659,8 @@ class SetPasswordUser(command.Command):
def take_action(self, parsed_args):
identity_client = self.app.client_manager.sdk_connection.identity
conn = self.app.client_manager.sdk_connection
user_id = conn.config.get_auth().get_user_id(conn.identity)
# FIXME(gyee): there are two scenarios:
#
@ -701,7 +703,9 @@ class SetPasswordUser(command.Command):
)
identity_client.update_user(
current_password=current_password, password=password
user=user_id,
current_password=current_password,
password=password,
)