NetboxPS/Functions/Setup/Get-NetboxCredential.ps1
2020-04-09 09:57:20 -04:00

11 lines
No EOL
286 B
PowerShell

function Get-NetboxCredential {
[CmdletBinding()]
[OutputType([pscredential])]
param ()
if (-not $script:NetboxConfig.Credential) {
throw "Netbox Credentials not set! You may set with Set-NetboxCredential"
}
$script:NetboxConfig.Credential
}