mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
now traps exceptions on display instantiation
This commit is contained in:
parent
22a0aa016f
commit
6a75125f32
1 changed files with 2 additions and 1 deletions
|
@ -43,10 +43,11 @@ from ansible.utils.display import Display
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
|
||||||
cli = None
|
cli = None
|
||||||
display = Display()
|
|
||||||
me = os.path.basename(sys.argv[0])
|
me = os.path.basename(sys.argv[0])
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
display = Display()
|
||||||
|
|
||||||
if me == 'ansible-playbook':
|
if me == 'ansible-playbook':
|
||||||
from ansible.cli.playbook import PlaybookCLI as mycli
|
from ansible.cli.playbook import PlaybookCLI as mycli
|
||||||
elif me == 'ansible':
|
elif me == 'ansible':
|
||||||
|
|
Loading…
Reference in a new issue