From 973f36c496b1c1f3bfdae2c5661edb935d5273ab Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 26 Nov 2009 15:53:07 +0100 Subject: Fix Bool parameter type. It was impossible to set it to FALSE. --- ipalib/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index f54e6e75..64ace035 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -764,7 +764,7 @@ class cli(backend.Executioner): ) if option.password and self.env.interactive: kw['action'] = 'store_true' - elif option.type is bool: + elif option.type is bool and option.autofill: if option.default is True: kw['action'] = 'store_false' else: -- cgit