Fix pylint errors

Fix pylint errors
This commit is contained in:
Mapel88 2017-08-28 10:11:36 +03:00 committed by GitHub
parent 290d7b54af
commit 1eba8c4b8e

View file

@ -836,12 +836,10 @@ def create_cert_binding(name, site, hostheader='', ipaddress='*', port=443,
if _iisVersion() < 8:
# IIS 7.5 and earlier have different syntax for associating a certificate with a site
# Modify IP spec to IIS 7.5 format
iis7path = binding_path.replace(r"\*!", "\\0.0.0.0!")
iis7path = binding_path.replace(r"\*!", "\\0.0.0.0!")
# win 2008 uses the following format: ip!port and not ip!port!
if iis7path.endswith("!"):
iis7path = iis7path[:-1]
iis7path = iis7path[:-1]
ps_cmd = ['New-Item',
'-Path', "'{0}'".format(iis7path),