Commit 6a75125f by Brian Coca

now traps exceptions on display instantiation

parent 22a0aa01
......@@ -43,10 +43,11 @@ from ansible.utils.display import Display
if __name__ == '__main__':
cli = None
display = Display()
me = os.path.basename(sys.argv[0])
try:
display = Display()
if me == 'ansible-playbook':
from ansible.cli.playbook import PlaybookCLI as mycli
elif me == 'ansible':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment