mirror of
https://github.com/benclaussen/NetboxPS.git
synced 2025-12-13 18:02:29 +00:00
11 lines
No EOL
278 B
PowerShell
11 lines
No EOL
278 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
|
|
} |