From b405a1218bde060f2297d428c7f2f80af55bf3ff Mon Sep 17 00:00:00 2001 From: Jan Cholasta Date: Mon, 20 Jun 2016 12:29:23 +0200 Subject: [PATCH] frontend: do not crash on missing output in output_for_cli Do not crash in Command.output_for_cli when an output value is missing. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka --- ipalib/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ipalib/frontend.py b/ipalib/frontend.py index d483c11de..3edd298f7 100644 --- a/ipalib/frontend.py +++ b/ipalib/frontend.py @@ -1048,7 +1048,7 @@ class Command(HasParam): outp = self.output[o] if 'no_display' in outp.flags: continue - result = output[o] + result = output.get(o) if o == 'value': continue