Fixing DFW URL
This commit is contained in:
@@ -1160,7 +1160,7 @@ Function Get-NSXTDistFirewallSection {
|
|||||||
if($PSVersionTable.PSEdition -eq "Core") {
|
if($PSVersionTable.PSEdition -eq "Core") {
|
||||||
$requests = Invoke-WebRequest -Uri $distFirewallSectionURL -Method $method -Headers $global:nsxtProxyConnection.headers -SkipCertificateCheck
|
$requests = Invoke-WebRequest -Uri $distFirewallSectionURL -Method $method -Headers $global:nsxtProxyConnection.headers -SkipCertificateCheck
|
||||||
} else {
|
} else {
|
||||||
$requests = Invoke-WebRequest -Uri $distFirdistFirewallSectionURLwallURL -Method $method -Headers $global:nsxtProxyConnection.headers
|
$requests = Invoke-WebRequest -Uri $distFirdistFirewallSectionURL -Method $method -Headers $global:nsxtProxyConnection.headers
|
||||||
}
|
}
|
||||||
} catch {
|
} catch {
|
||||||
if($_.Exception.Response.StatusCode -eq "Unauthorized") {
|
if($_.Exception.Response.StatusCode -eq "Unauthorized") {
|
||||||
|
|||||||
Reference in New Issue
Block a user