Add call to Get-NetboxContentType in Connect-NetboxAPI and NetboxConfigVariable storage

This commit is contained in:
Ben Claussen 2023-02-16 09:45:51 -05:00
parent 4a0bd1d2d0
commit 1ec38d3da2
2 changed files with 4 additions and 1 deletions

View file

@ -144,7 +144,9 @@
} else {
Write-Verbose "Found compatible version [$($script:NetboxConfig.NetboxVersion.'netbox-version')]!"
}
$script:NetboxConfig.ContentTypes = Get-NetboxContentType -Limit 500
$script:NetboxConfig.Connected = $true
Write-Verbose "Successfully connected!"

View file

@ -13,6 +13,7 @@
'Choices' = @{
}
'APIDefinition' = $null
'ContentTypes' = $null
}
}