mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Hide continue option from automountkey-del
This option makes no sense for automount keys. This should be removed in future versions. https://fedorahosted.org/freeipa/ticket/1529
This commit is contained in:
committed by
Rob Crittenden
parent
4c9359ab62
commit
07837082f4
2
API.txt
2
API.txt
@@ -117,7 +117,7 @@ command: automountkey_del
|
||||
args: 2,3,3
|
||||
arg: Str('automountlocationcn', cli_name='automountlocation', label=Gettext('Location', domain='ipa', localedir=None), query=True, required=True)
|
||||
arg: IA5Str('automountmapautomountmapname', cli_name='automountmap', label=Gettext('Map', domain='ipa', localedir=None), query=True, required=True)
|
||||
option: Flag('continue', autofill=True, cli_name='continue', default=False)
|
||||
option: Flag('continue', autofill=True, cli_name='continue', default=False, exclude='webui', flags=['no_option', 'no_output'], label=FixMe('continue'), multivalue=False, required=True)
|
||||
option: IA5Str('automountkey', cli_name='key', label=Gettext('Key', domain='ipa', localedir=None))
|
||||
option: IA5Str('automountinformation?', cli_name='info', label=Gettext('Mount information', domain='ipa', localedir=None))
|
||||
output: Output('summary', (<type 'unicode'>, <type 'NoneType'>), 'User-friendly description of action performed')
|
||||
|
||||
@@ -824,6 +824,14 @@ class automountkey_del(LDAPDelete):
|
||||
label=_('Mount information'),
|
||||
),
|
||||
)
|
||||
def get_options(self):
|
||||
for option in self.takes_options:
|
||||
if option.name == 'continue':
|
||||
# TODO: hide for now - remove in future major release
|
||||
yield option.clone(exclude='webui',
|
||||
flags=['no_option', 'no_output'])
|
||||
else:
|
||||
yield option
|
||||
|
||||
def get_args(self):
|
||||
for key in self.obj.get_ancestor_primary_keys():
|
||||
|
||||
Reference in New Issue
Block a user