diff options
author | Jan Cholasta <jcholast@redhat.com> | 2016-06-20 12:40:36 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2016-06-20 16:39:12 +0200 |
commit | 71de8878bd3c2aadf61ebefc91f5b50a3f73c9d2 (patch) | |
tree | 06429eb6b4d2507fbbd3dfe61276c4fa2b5d7439 /ipaclient/plugins | |
parent | 538286490922ff40f15048f71e520c616f796976 (diff) | |
download | freeipa-71de8878bd3c2aadf61ebefc91f5b50a3f73c9d2.tar.gz freeipa-71de8878bd3c2aadf61ebefc91f5b50a3f73c9d2.tar.xz freeipa-71de8878bd3c2aadf61ebefc91f5b50a3f73c9d2.zip |
passwd: handle sort order of passwd argument on the client
https://fedorahosted.org/freeipa/ticket/4739
Reviewed-By: David Kupka <dkupka@redhat.com>
Diffstat (limited to 'ipaclient/plugins')
-rw-r--r-- | ipaclient/plugins/passwd.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ipaclient/plugins/passwd.py b/ipaclient/plugins/passwd.py new file mode 100644 index 000000000..738230619 --- /dev/null +++ b/ipaclient/plugins/passwd.py @@ -0,0 +1,17 @@ +# +# Copyright (C) 2016 FreeIPA Contributors see COPYING for license +# + +from ipaclient.frontend import CommandOverride +from ipalib.plugable import Registry + +register = Registry() + + +@register(override=True) +class passwd(CommandOverride): + def get_args(self): + for arg in super(passwd, self).get_args(): + if arg.name == 'current_password': + arg = arg.clone(sortorder=-1) + yield arg |