We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8863800 commit c75b442Copy full SHA for c75b442
Src/Private/Get-NetAppOntapAPI.ps1
@@ -75,7 +75,12 @@ function Get-NetAppOntapAPI {
75
76
Process {
77
Try {
78
- $response = Invoke-RestMethod -Method Get -Uri ($api + $uri) -Headers $headers -SkipCertificateCheck
+ if ($PSVersionTable.PSEdition -eq 'Core') {
79
+ $response = Invoke-RestMethod -Method Get -Uri ($api + $uri) -Headers $headers -SkipCertificateCheck
80
+
81
+ } else {
82
+ $response = Invoke-RestMethod -Method Get -Uri ($api + $uri) -Headers $headers
83
+ }
84
$response.records
85
} Catch {
86
Write-Verbose -Message $_
0 commit comments