mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
client: ignore override errors in command overrides
This fixes API initialization errors when the remote server does not have the overriden command. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -29,7 +29,7 @@ from ipalib import x509
|
||||
register = Registry()
|
||||
|
||||
|
||||
@register(override=True)
|
||||
@register(override=True, no_fail=True)
|
||||
class user_del(MethodOverride):
|
||||
def get_options(self):
|
||||
for option in super(user_del, self).get_options():
|
||||
@@ -60,7 +60,7 @@ class user_del(MethodOverride):
|
||||
return super(user_del, self).forward(*keys, **options)
|
||||
|
||||
|
||||
@register(override=True)
|
||||
@register(override=True, no_fail=True)
|
||||
class user_show(MethodOverride):
|
||||
def forward(self, *keys, **options):
|
||||
if 'out' in options:
|
||||
|
||||
Reference in New Issue
Block a user