Skip to content

Commit caa6b1f

Browse files
committed
Removed unnecessary Get-Variable calls which caused issues
1 parent 898b80d commit caa6b1f

1 file changed

Lines changed: 19 additions & 19 deletions

File tree

src/OnCommand-Insight.psm1

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7001,11 +7001,11 @@ function Global:Get-OciDatastores {
70017001
$Uri += '?'
70027002
$Separator = ''
70037003
if ($limit) {
7004-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
7004+
$Uri += "$($Separator)limit=$limit"
70057005
$Separator = '&'
70067006
}
70077007
if ($limit -and $offset) {
7008-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
7008+
$Uri += "$($Separator)offset=$offset"
70097009
$Separator = '&'
70107010
}
70117011
if ($expand) {
@@ -9180,11 +9180,11 @@ function Global:Get-OciFabrics {
91809180
$Separator = '&'
91819181
}
91829182
if ($limit) {
9183-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
9183+
$Uri += "$($Separator)limit=$limit"
91849184
$Separator = '&'
91859185
}
91869186
if ($limit -and $offset) {
9187-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
9187+
$Uri += "$($Separator)offset=$offset"
91889188
$Separator = '&'
91899189
}
91909190
if ($expand) {
@@ -9636,15 +9636,15 @@ function Global:Get-OciPortsByFabric {
96369636
$Separator = '&'
96379637
}
96389638
if ($sort) {
9639-
$Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
9639+
$Uri += "$($Separator)sort=$sort"
96409640
$Separator = '&'
96419641
}
96429642
if ($limit) {
9643-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
9643+
$Uri += "$($Separator)limit=$limit"
96449644
$Separator = '&'
96459645
}
96469646
if ($limit -and $offset) {
9647-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
9647+
$Uri += "$($Separator)offset=$offset"
96489648
$Separator = '&'
96499649
}
96509650
if ($expand) {
@@ -10634,15 +10634,15 @@ function Global:Get-OciHosts {
1063410634
$Separator = '&'
1063510635
}
1063610636
if ($sort) {
10637-
$Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
10637+
$Uri += "$($Separator)sort=$sort"
1063810638
$Separator = '&'
1063910639
}
1064010640
if ($limit) {
10641-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
10641+
$Uri += "$($Separator)limit=$limit"
1064210642
$Separator = '&'
1064310643
}
1064410644
if ($limit -and $offset) {
10645-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
10645+
$Uri += "$($Separator)offset=$offset"
1064610646
$Separator = '&'
1064710647
}
1064810648
if ($expand) {
@@ -21190,15 +21190,15 @@ function Global:Get-OciStorages {
2119021190
$Separator = '&'
2119121191
}
2119221192
if ($sort) {
21193-
$Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
21193+
$Uri += "$($Separator)sort=$sort"
2119421194
$Separator = '&'
2119521195
}
2119621196
if ($limit) {
21197-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
21197+
$Uri += "$($Separator)limit=$limit"
2119821198
$Separator = '&'
2119921199
}
2120021200
if ($limit -and $offset) {
21201-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
21201+
$Uri += "$($Separator)offset=$offset"
2120221202
$Separator = '&'
2120321203
}
2120421204
if ($expand) {
@@ -23816,15 +23816,15 @@ function Global:Get-OciSwitches {
2381623816
$Separator = '&'
2381723817
}
2381823818
if ($sort) {
23819-
$Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
23819+
$Uri += "$($Separator)sort=$sort"
2382023820
$Separator = '&'
2382123821
}
2382223822
if ($limit) {
23823-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
23823+
$Uri += "$($Separator)limit=$limit"
2382423824
$Separator = '&'
2382523825
}
2382623826
if ($limit -and $offset) {
23827-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
23827+
$Uri += "$($Separator)offset=$offset"
2382823828
$Separator = '&'
2382923829
}
2383023830
if ($expand) {
@@ -25337,15 +25337,15 @@ function Global:Get-OciVirtualMachines {
2533725337
$Separator = '&'
2533825338
}
2533925339
if ($sort) {
25340-
$Uri += "$($Separator)sort=$((Get-Variable 'sort').Value)"
25340+
$Uri += "$($Separator)sort=$sort"
2534125341
$Separator = '&'
2534225342
}
2534325343
if ($limit) {
25344-
$Uri += "$($Separator)limit=$((Get-Variable 'limit').Value)"
25344+
$Uri += "$($Separator)limit=$limit"
2534525345
$Separator = '&'
2534625346
}
2534725347
if ($limit -and $offset) {
25348-
$Uri += "$($Separator)offset=$((Get-Variable 'offset').Value)"
25348+
$Uri += "$($Separator)offset=$offset"
2534925349
$Separator = '&'
2535025350
}
2535125351
if ($expand) {

0 commit comments

Comments
 (0)