Fix 'set user' command
* missing --name arguemnt in parser for SetUser() * correct Identity api call for SetUser() Fix bug 1001384 Change-Id: I51169a0585c1bfe106ddd2e390269f69fc32852c
This commit is contained in:
parent
0c4e131c6e
commit
ec586a75f4
@ -166,6 +166,11 @@ class SetUser(command.OpenStackCommand):
|
|||||||
metavar='<user>',
|
metavar='<user>',
|
||||||
help='Name or ID of user to change',
|
help='Name or ID of user to change',
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
'--name',
|
||||||
|
metavar='<new-user-name>',
|
||||||
|
help='New user name',
|
||||||
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--password',
|
'--password',
|
||||||
metavar='<user-password>',
|
metavar='<user-password>',
|
||||||
@ -217,7 +222,7 @@ class SetUser(command.OpenStackCommand):
|
|||||||
if not len(kwargs):
|
if not len(kwargs):
|
||||||
stdout.write("User not updated, no arguments present")
|
stdout.write("User not updated, no arguments present")
|
||||||
return
|
return
|
||||||
identity_client.users.delete(user.id)
|
identity_client.users.update(user.id, **kwargs)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user