mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
schema: do not crash in command_defaults if argument is None
https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -266,8 +266,8 @@ class command_defaults(PKQuery):
|
|||||||
def execute(self, name, **options):
|
def execute(self, name, **options):
|
||||||
command = self.api.Command[name]
|
command = self.api.Command[name]
|
||||||
|
|
||||||
params = options.get('params', [])
|
params = options.get('params') or []
|
||||||
kw = options.get('kw', {})
|
kw = options.get('kw') or {}
|
||||||
|
|
||||||
result = command.get_default(params, **kw)
|
result = command.get_default(params, **kw)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user