NetboxPS/Functions/Setup/Get-NetboxHostPort.ps1
Alexis La Goutte 3dbfdaf038 Fix trailing white space
using Invoke-ScriptAnalyzer -Fix -Path . -Recurse
2021-07-23 20:56:30 +02:00

11 lines
No EOL
305 B
PowerShell

function Get-NetboxHostPort {
[CmdletBinding()]
param ()
Write-Verbose "Getting Netbox host port"
if ($null -eq $script:NetboxConfig.HostPort) {
throw "Netbox host port is not set! You may set it with Set-NetboxHostPort -Port 'https'"
}
$script:NetboxConfig.HostPort
}