NetboxPS/Functions/Setup/Support/SetupNetboxConfigVariable.ps1

20 lines
510 B
PowerShell
Raw Normal View History

2020-04-09 09:57:20 -04:00
function SetupNetboxConfigVariable {
[CmdletBinding()]
param
(
[switch]$Overwrite
)
Write-Verbose "Checking for NetboxConfig hashtable"
if ((-not ($script:NetboxConfig)) -or $Overwrite) {
Write-Verbose "Creating NetboxConfig hashtable"
$script:NetboxConfig = @{
'Connected' = $false
2020-04-09 09:57:20 -04:00
'Choices' = @{
}
'APIDefinition' = $null
}
}
Write-Verbose "NetboxConfig hashtable already exists"
}