From fdb5ecd7d14c2f1fe882845c6fd4476df8ec87a6 Mon Sep 17 00:00:00 2001 From: chouseknecht Date: Tue, 23 Aug 2016 16:21:26 -0400 Subject: [PATCH] Fixes 'choices referenced before assignment' error on line #287. --- lib/ansible/cli/doc.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index d3e57e2a36..124a1cd679 100644 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -280,6 +280,7 @@ class DocCLI(CLI): else: text.append(textwrap.fill(CLI.tty_ify(opt['description']), limit, initial_indent=opt_indent, subsequent_indent=opt_indent)) + choices = '' if 'choices' in opt: choices = "(Choices: " + ", ".join(str(i) for i in opt['choices']) + ")" if 'default' in opt or not required: