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

15 lines
No EOL
385 B
PowerShell

function Set-NetboxHostPort {
[CmdletBinding(ConfirmImpact = 'Low',
SupportsShouldProcess = $true)]
[OutputType([string])]
param
(
[Parameter(Mandatory = $true)]
[uint16]$Port
)
if ($PSCmdlet.ShouldProcess('Netbox Port', 'Set')) {
$script:NetboxConfig.HostPort = $Port
$script:NetboxConfig.HostPort
}
}