Skip to content
Snippets Groups Projects
Commit a5507b08 authored by Attila Farkas's avatar Attila Farkas
Browse files

Add function for finding windows hosts

parent 0d8474bd
No related branches found
No related tags found
1 merge request!22Resolve "Support Windows boxes"
......@@ -71,6 +71,15 @@ def _delete_dummy_router(definitions):
return
def _find_windows_boxes(definitions):
"""Find and return list of host names with windows boxes."""
windows_hosts = []
for host in definitions["hosts"]:
if "windows" in host["base_box"]["image"].lower():
windows_hosts.append(host["name"])
return windows_hosts
def preprocess(definitions, flags):
"""Run preprocessing.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment