summaryrefslogtreecommitdiff
path: root/bin/ansible
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2015-07-05 17:24:15 -0400
committerBrian Coca <brian.coca+git@gmail.com>2015-07-05 17:24:15 -0400
commit6a75125f32472187c6231e84ccc9e33e6d60bb2c (patch)
tree54600fdb227436827b88e2641e39c7dcbc6ea418 /bin/ansible
parent22a0aa016f00f38afe926f31d863aed9055e9322 (diff)
downloadansible-6a75125f32472187c6231e84ccc9e33e6d60bb2c.tar.gz
now traps exceptions on display instantiation
Diffstat (limited to 'bin/ansible')
-rwxr-xr-xbin/ansible3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/ansible b/bin/ansible
index 8fbc509047..2c8c6f3d22 100755
--- a/bin/ansible
+++ b/bin/ansible
@@ -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':