Merge "Fix 'set user' command"
This commit is contained in:
commit
3acb1c6a85
@ -166,6 +166,11 @@ class SetUser(command.OpenStackCommand):
|
||||
metavar='<user>',
|
||||
help='Name or ID of user to change',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--name',
|
||||
metavar='<new-user-name>',
|
||||
help='New user name',
|
||||
)
|
||||
parser.add_argument(
|
||||
'--password',
|
||||
metavar='<user-password>',
|
||||
@ -217,7 +222,7 @@ class SetUser(command.OpenStackCommand):
|
||||
if not len(kwargs):
|
||||
stdout.write("User not updated, no arguments present")
|
||||
return
|
||||
identity_client.users.delete(user.id)
|
||||
identity_client.users.update(user.id, **kwargs)
|
||||
return
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user