From 231f0bd65aec9cc0767bd6a76d5aa5b27dd37168 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 28 Jan 2009 13:05:26 -0700 Subject: Finished reworked cli.CLI class into cli.cli plugin --- ipalib/plugins/f_passwd.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/f_passwd.py') diff --git a/ipalib/plugins/f_passwd.py b/ipalib/plugins/f_passwd.py index ea78c4c1..739e6d5b 100644 --- a/ipalib/plugins/f_passwd.py +++ b/ipalib/plugins/f_passwd.py @@ -30,12 +30,13 @@ class passwd(Command): 'Edit existing password policy.' takes_args = ( - Str('principal', + Password('password'), + Str('principal?', cli_name='user', primary_key=True, + autofill=True, default_from=util.get_current_principal, ), - Password('password'), ) def execute(self, principal, password): -- cgit