From 493ae1e5028c6ce8a0888146ee3de6c798caa55f Mon Sep 17 00:00:00 2001 From: Martin Basti Date: Wed, 1 Jun 2016 15:26:43 +0200 Subject: Fix: Local variable s_indent might be referenced before defined Sanity fix to make sure we do not hit UnboundLocalError and fail terribly https://fedorahosted.org/freeipa/ticket/5921 Reviewed-By: Martin Babinsky --- ipalib/cli.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipalib/cli.py') diff --git a/ipalib/cli.py b/ipalib/cli.py index 33e982ef9..0de268249 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -324,6 +324,7 @@ class textui(backend.Backend): if len(text) == 0: text = [u''] else: + s_indent = u'' text = [text] self.print_indented(format % (attr, text[0]), indent) for line in text[1:]: -- cgit