From a1d6c9ab6b710076902c1dd8ffcdec96b2538c21 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Wed, 14 May 2014 13:46:25 +0200 Subject: sudorule: Fix the order of the parameters to have less chaotic output Reviewed-By: Petr Viktorin --- ipalib/plugins/sudorule.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'ipalib/plugins/sudorule.py') diff --git a/ipalib/plugins/sudorule.py b/ipalib/plugins/sudorule.py index 3d6bc7042..59beed4e8 100644 --- a/ipalib/plugins/sudorule.py +++ b/ipalib/plugins/sudorule.py @@ -271,6 +271,11 @@ class sudorule(LDAPObject): label=_('User Groups'), flags=['no_create', 'no_update', 'no_search'], ), + Str('externaluser?', validate_externaluser, + cli_name='externaluser', + label=_('External User'), + doc=_('External User the rule applies to (sudorule-find only)'), + ), Str('memberhost_host?', label=_('Hosts'), flags=['no_create', 'no_update', 'no_search'], @@ -285,6 +290,7 @@ class sudorule(LDAPObject): flags=['no_create', 'no_update', 'no_search'], multivalue=True, ), + external_host_param, Str('memberallowcmd_sudocmd?', label=_('Sudo Allow Commands'), flags=['no_create', 'no_update', 'no_search'], @@ -311,11 +317,6 @@ class sudorule(LDAPObject): doc=_('Run as any user within a specified group'), flags=['no_create', 'no_update', 'no_search'], ), - Str('externaluser?', validate_externaluser, - cli_name='externaluser', - label=_('External User'), - doc=_('External User the rule applies to (sudorule-find only)'), - ), Str('ipasudorunasextuser?', validate_runasextuser, cli_name='runasexternaluser', label=_('RunAs External User'), @@ -327,6 +328,11 @@ class sudorule(LDAPObject): doc=_('External Groups of users that the command can run as'), flags=['no_create', 'no_update', 'no_search'], ), + Str('ipasudorunasgroup_group?', + label=_('RunAs Groups'), + doc=_('Run with the gid of a specified POSIX group'), + flags=['no_create', 'no_update', 'no_search'], + ), Str('ipasudorunasextgroup?', validate_runasextgroup, cli_name='runasexternalgroup', label=_('RunAs External Group'), @@ -336,12 +342,6 @@ class sudorule(LDAPObject): label=_('Sudo Option'), flags=['no_create', 'no_update', 'no_search'], ), - Str('ipasudorunasgroup_group?', - label=_('RunAs Groups'), - doc=_('Run with the gid of a specified POSIX group'), - flags=['no_create', 'no_update', 'no_search'], - ), - external_host_param, ) order_not_unique_msg = _( -- cgit