Merge "Fix 'set user' command"

This commit is contained in:
Jenkins 2012-05-22 13:59:31 +00:00 committed by Gerrit Code Review
commit 3acb1c6a85

View File

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