From 8474bd01da13b9b72ba06e832d4c35ef6ccf5c9e Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Mon, 17 Nov 2008 18:50:30 -0700 Subject: Command.get_defaults() now returns param.default if param.type is a Bool --- ipalib/frontend.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipalib/frontend.py') diff --git a/ipalib/frontend.py b/ipalib/frontend.py index 3ae143ef3..61cba513b 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -651,6 +651,8 @@ class Command(plugable.Plugin): if kw.get(param.name, None) is None: if param.required: yield (param.name, param.get_default(**kw)) + elif isinstance(param.type, ipa_types.Bool): + yield (param.name, param.default) else: yield (param.name, None) -- cgit