Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chornberger-c2c committed Dec 22, 2023
1 parent f630991 commit 7f2edec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vagrant_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"""
Vagrant external inventory script. Automatically finds the IP of the booted
vagrant vm(s), and returns it under the host group 'vagrant' with either the
machine name or - if set to default - the directory name of the Vagrantfile
machine name or - if set to default - the directory name of the Vagrantfile
as ansible inventory hostname.
# Copyright (C) 2013 Mark Mandel <[email protected]>
Expand Down Expand Up @@ -130,12 +130,12 @@ def get_a_ssh_config(box_id,box_name):
# ------------------------------
elif options.host:
list_running_boxes()
box_id = list(mapping.keys())[list(mapping.values()).index(options.host)]
print(json.dumps(get_a_ssh_config(box_id,options.host), indent=4))
id = list(mapping.keys())[list(mapping.values()).index(options.host)]
print(json.dumps(get_a_ssh_config(id,options.host), indent=4))
sys.exit(0)

# Print out help
# ------------------------------
else:
parser.print_help()
sys.exit(0)
sys.exit(0)

0 comments on commit 7f2edec

Please sign in to comment.