mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-08 14:20:04 -07:00
Fix compile errors in scripts.
This commit is contained in:
parent
47083f145a
commit
75c281debc
6 changed files with 9 additions and 13 deletions
|
@ -69,7 +69,7 @@ parser.add_option('--host', default=None, dest="host",
|
|||
|
||||
# get all the ssh configs for all boxes in an array of dictionaries.
|
||||
def get_ssh_config():
|
||||
return {k: get_a_ssh_config(k) for k in list_running_boxes()}
|
||||
return dict((k, get_a_ssh_config(k)) for k in list_running_boxes())
|
||||
|
||||
|
||||
# list all the running boxes
|
||||
|
@ -102,7 +102,7 @@ def get_a_ssh_config(box_name):
|
|||
if os.path.isfile(id):
|
||||
host_config['identityfile'] = id
|
||||
|
||||
return {v: host_config[k] for k, v in _ssh_to_ansible}
|
||||
return dict((v, host_config[k]) for k, v in _ssh_to_ansible)
|
||||
|
||||
# List out servers that vagrant has running
|
||||
# ------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue