diff --git a/openstackclient/identity/v2_0/user.py b/openstackclient/identity/v2_0/user.py index 36ea0e4fa0..dacf20a473 100644 --- a/openstackclient/identity/v2_0/user.py +++ b/openstackclient/identity/v2_0/user.py @@ -166,6 +166,11 @@ class SetUser(command.OpenStackCommand): metavar='', help='Name or ID of user to change', ) + parser.add_argument( + '--name', + metavar='', + help='New user name', + ) parser.add_argument( '--password', metavar='', @@ -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