Commit 309bbda5 by Brian Coca

Merge pull request #10574 from joefis/patch-1

Vagrant inventory: exit 0 on success
parents 055d1444 3a70affb
......@@ -107,7 +107,7 @@ if options.list:
hosts['vagrant'].append(data['HostName'])
print json.dumps(hosts)
sys.exit(1)
sys.exit(0)
# Get out the host details
#------------------------------
......@@ -122,11 +122,11 @@ elif options.host:
result['ansible_ssh_port'] = result['Port']
print json.dumps(result)
sys.exit(1)
sys.exit(0)
# Print out help
#------------------------------
else:
parser.print_help()
sys.exit(1)
\ No newline at end of file
sys.exit(0)
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