mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #39346 from joe-niland/handle-iis-bindings
Ignore non-HTTP IIS bindings
This commit is contained in:
commit
082105fa84
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