now correctly traps unimplemented symlinks as subprograms

pull/13007/merge
Brian Coca 9 years ago
parent 3c1fe28bed
commit 56a2412dc2

@ -74,12 +74,13 @@ if __name__ == '__main__':
elif me == 'ansible-galaxy': elif me == 'ansible-galaxy':
from ansible.cli.galaxy import GalaxyCLI as mycli from ansible.cli.galaxy import GalaxyCLI as mycli
cli = mycli(sys.argv, display=display) try:
if cli: cli = mycli(sys.argv, display=display)
cli.parse() except NameError:
sys.exit(cli.run()) raise AnsibleError("Ansible sub-program not implemented: %s" % me)
else:
raise AnsibleError("Program not implemented: %s" % me) cli.parse()
sys.exit(cli.run())
except AnsibleOptionsError as e: except AnsibleOptionsError as e:
cli.parser.print_help() cli.parser.print_help()

Loading…
Cancel
Save