NetboxPS/Functions/Setup/Get-NetboxHostname.ps1

11 lines
329 B
PowerShell
Raw Normal View History

2020-04-09 09:57:20 -04:00
function Get-NetboxHostname {
[CmdletBinding()]
param ()
Write-Verbose "Getting Netbox hostname"
if ($null -eq $script:NetboxConfig.Hostname) {
throw "Netbox Hostname is not set! You may set it with Set-NetboxHostname -Hostname 'hostname.domain.tld'"
}
$script:NetboxConfig.Hostname
}