mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-26 16:16:31 -06:00
automember default group: remove --desc parameter
The automember-default-group commands inherit from the automember commands but should not provide the --desc parameter. Remove 'description' from the list of parameters. Fixes: https://pagure.io/freeipa/issue/9068 Reviewed-By: Thomas Woerner <twoerner@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
parent
513099b4b3
commit
189d090d29
6
API.txt
6
API.txt
@ -136,9 +136,8 @@ output: Entry('result')
|
||||
output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>])
|
||||
output: PrimaryKey('value')
|
||||
command: automember_default_group_remove/1
|
||||
args: 0,5,3
|
||||
args: 0,4,3
|
||||
option: Flag('all', autofill=True, cli_name='all', default=False)
|
||||
option: Str('description?', autofill=False, cli_name='desc')
|
||||
option: Flag('raw', autofill=True, cli_name='raw', default=False)
|
||||
option: StrEnum('type', values=[u'group', u'hostgroup'])
|
||||
option: Str('version?')
|
||||
@ -146,10 +145,9 @@ output: Entry('result')
|
||||
output: Output('summary', type=[<type 'unicode'>, <type 'NoneType'>])
|
||||
output: Output('value', type=[<type 'unicode'>])
|
||||
command: automember_default_group_set/1
|
||||
args: 0,6,3
|
||||
args: 0,5,3
|
||||
option: Flag('all', autofill=True, cli_name='all', default=False)
|
||||
option: Str('automemberdefaultgroup', cli_name='default_group')
|
||||
option: Str('description?', autofill=False, cli_name='desc')
|
||||
option: Flag('raw', autofill=True, cli_name='raw', default=False)
|
||||
option: StrEnum('type', values=[u'group', u'hostgroup'])
|
||||
option: Str('version?')
|
||||
|
@ -566,7 +566,7 @@ class automember_default_group(automember):
|
||||
|
||||
def get_params(self):
|
||||
for param in super(automember_default_group, self).get_params():
|
||||
if param.name == 'cn':
|
||||
if param.name == 'cn' or param.name == 'description':
|
||||
continue
|
||||
yield param
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user