Support(Setup): Fix indent (using Visual Code Formatter)

This commit is contained in:
Alexis La Goutte 2021-07-21 22:22:28 +02:00
parent 5b1ee45769
commit 4ad0562466
3 changed files with 21 additions and 21 deletions

View file

@ -14,16 +14,16 @@
function Get-NetboxAPIDefinition { function Get-NetboxAPIDefinition {
[CmdletBinding()] [CmdletBinding()]
param () param ()
#$URI = "https://netbox.neonet.org/api/docs/?format=openapi" #$URI = "https://netbox.neonet.org/api/docs/?format=openapi"
$Segments = [System.Collections.ArrayList]::new(@('docs')) $Segments = [System.Collections.ArrayList]::new(@('docs'))
$URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi'} $URIComponents = BuildURIComponents -URISegments $Segments -ParametersDictionary @{'format' = 'openapi' }
$URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck $URI = BuildNewURI -Segments $URIComponents.Segments -Parameters $URIComponents.Parameters -SkipConnectedCheck
InvokeNetboxRequest -URI $URI -Timeout 10 InvokeNetboxRequest -URI $URI -Timeout 10
} }

View file

@ -9,8 +9,8 @@
if ((-not ($script:NetboxConfig)) -or $Overwrite) { if ((-not ($script:NetboxConfig)) -or $Overwrite) {
Write-Verbose "Creating NetboxConfig hashtable" Write-Verbose "Creating NetboxConfig hashtable"
$script:NetboxConfig = @{ $script:NetboxConfig = @{
'Connected' = $false 'Connected' = $false
'Choices' = @{ 'Choices' = @{
} }
'APIDefinition' = $null 'APIDefinition' = $null
} }

View file

@ -4,7 +4,7 @@
$uriSegments = [System.Collections.ArrayList]::new(@('extras')) $uriSegments = [System.Collections.ArrayList]::new(@('extras'))
$uri = BuildNewURI -Segments $uriSegments -Parameters @{'format' = 'json'} -SkipConnectedCheck $uri = BuildNewURI -Segments $uriSegments -Parameters @{'format' = 'json' } -SkipConnectedCheck
InvokeNetboxRequest -URI $uri InvokeNetboxRequest -URI $uri
} }