mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
win_iis module: list_sites - when retrieving bindings, ignore bindigs whose protocols do not have host headers
This commit is contained in:
parent
ce1f01f81a
commit
8d5afdb0ae
1 changed files with 5 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue