Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
chornberger-c2c committed Feb 22, 2024
1 parent 3c773ac commit d674a7f
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 @@ -44,10 +44,10 @@ def main():
('hostname', 'ansible_host'),
('identityfile', 'ansible_private_key_file'),
('port', 'ansible_port')]

parse_options()
process_options()

def parse_options():
"""
Parse command line options
Expand Down Expand Up @@ -82,7 +82,7 @@ def process_options():

print(json.dumps({_GROUP: list(mapping.values()), '_meta': meta}, indent=4))
sys.exit(0)

elif options.host:
list_running_boxes()
host_id = list(mapping.keys())[list(mapping.values()).index(options.host)]
Expand Down Expand Up @@ -149,4 +149,4 @@ def get_a_ssh_config(box_id,box_name):
return dict((v, host_config[k]) for k, v in _ssh_to_ansible)

if __name__ == "__main__":
main()
main()

0 comments on commit d674a7f

Please sign in to comment.