NetboxPS/Functions/Setup/Get-NetboxCredential.ps1

11 lines
286 B
PowerShell
Raw Normal View History

2020-04-09 09:57:20 -04:00
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
}