win_iis module: list_sites - when retrieving bindings, ignore bindigs whose protocols do not have host headers

This commit is contained in:
Joe Niland 2017-02-13 13:37:05 +11:00
parent ce1f01f81a
commit 8d5afdb0ae

View file

@ -126,6 +126,11 @@ def list_sites():
bindings = dict()
for binding in item['bindings']['Collection']:
# Ignore bindings which do not have host names
if binding['protocol'] not in ['http', 'https']:
continue
filtered_binding = dict()
for key in binding: