From 07837082f4221e070c40617a5b36807ea80bed46 Mon Sep 17 00:00:00 2001 From: Martin Kosek Date: Tue, 2 Aug 2011 17:56:47 +0200 Subject: 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 --- ipalib/plugins/automount.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ipalib/plugins') diff --git a/ipalib/plugins/automount.py b/ipalib/plugins/automount.py index d05e0cf1c..e0408033d 100644 --- a/ipalib/plugins/automount.py +++ b/ipalib/plugins/automount.py @@ -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(): -- cgit