diff --git a/modules/preprocessing.py b/modules/preprocessing.py index 06deecd2389573bedd8905e587191255dff68ad5..2562f20f6d917759a76d65fc64f86e780ac4f4ec 100644 --- a/modules/preprocessing.py +++ b/modules/preprocessing.py @@ -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.