Skip to content

Commit dd5e1b9

Browse files
author
Jonathan landry
committed
Error when copy pasting
1 parent d45c5f1 commit dd5e1b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TaskModules/powershell/TaskModuleIISManageUtility/AppCmdOnTargetMachines.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function Add-SslCert
183183
Write-Verbose "Checking if SslCert binding is already present. Running command : netsh $showCertCmd"
184184

185185
$result = Invoke-VstsTool -Filename "netsh" -Arguments $showCertCmd
186-
$result = $result | where {$_.TrimStart().StartsWith("IP:port") -and $_.Contains([string]::Format("{0}:{1}", $ipAddress, $port))}
186+
$result = $result | where {$_.TrimStart().StartsWith("Hostname:port") -and $_.Contains([string]::Format("{0}:{1}", $hostname, $port))}
187187
if($result)
188188
{
189189
$isItSameBinding = $true

0 commit comments

Comments
 (0)