summaryrefslogtreecommitdiffstats
path: root/ipalib/plugins/sudorule.py
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-05-14 13:46:25 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-25 20:14:51 +0200
commita1d6c9ab6b710076902c1dd8ffcdec96b2538c21 (patch)
treeca99799ae60b94859c8979e5abf0c84d275b87b6 /ipalib/plugins/sudorule.py
parent9bb88a15e0297e3a3e8e713267bc399164e0cdd6 (diff)
downloadfreeipa-a1d6c9ab6b710076902c1dd8ffcdec96b2538c21.tar.gz
freeipa-a1d6c9ab6b710076902c1dd8ffcdec96b2538c21.tar.xz
freeipa-a1d6c9ab6b710076902c1dd8ffcdec96b2538c21.zip
sudorule: Fix the order of the parameters to have less chaotic output
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'ipalib/plugins/sudorule.py')
-rw-r--r--ipalib/plugins/sudorule.py22
1 files changed, 11 insertions, 11 deletions
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 = _(