fix bug 950685,make update user password works

Change-Id: If9c33fefdf7439cd5a6c301094b630bd541e821a
This commit is contained in:
Yaguang Tang
2012-03-10 16:02:56 +08:00
parent 4a975ce993
commit a7be3495f1
2 changed files with 3 additions and 2 deletions

View File

@@ -18,3 +18,4 @@ Matt Dietz <matt.dietz@rackspace.com>
Sandy Walsh <sandy@darksecretsoftware.com>
Gabriel Hurley <gabriel@strikeawe.com>
Joe Heck <heckj@mac.com>
Yaguang Tang <heut2008@gmail.com>

View File

@@ -74,12 +74,12 @@ def do_user_update(kc, args):
print 'Unable to update user: %s' % e
@utils.arg('--pass', metavar='<password>', required=True,
@utils.arg('--pass', metavar='<password>', dest='passwd', required=True,
help='Desired new password')
@utils.arg('id', metavar='<user-id>', help='User ID to update')
def do_user_password_update(kc, args):
"""Update user password"""
kc.users.update_password(args.id, args.password)
kc.users.update_password(args.id, args.passwd)
@utils.arg('id', metavar='<user-id>', help='User ID to delete')