Skip to content

Commit

Permalink
Merge pull request #41 from OctopusDeployLabs/creid/uri-split-fix
Browse files Browse the repository at this point in the history
Update CloneTentacleInstance.ps1
  • Loading branch information
BobJWalker authored Sep 22, 2022
2 parents be10fe4 + d39709a commit a2fb233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CloneTentacleInstance.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function Compare-TentacleWithMachineRegistration
return $true
}

$portNumber = ($machineRegistration.EndPoint.Uri -split ":")[2]
$portNumber = ([System.Uri]$machineRegistration.EndPoint.Uri).Port
if ($localTentacle.Tentacle.Services.PortNumber -eq $portNumber)
{
Write-OctopusSuccess "The machine $($machineRegistration.Id):$($machineRegistration.Name) port $($localTentacle.Tentacle.Services.PortNumber) matches port number $portNumber"
Expand Down

0 comments on commit a2fb233

Please sign in to comment.