Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Write-Error for Remove-NSXTFirewall and Remove-NSXTGroup fail #9

Merged
merged 1 commit into from
Jun 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VMware.VMC.NSXT.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'VMware.VMC.NSXT.psm1'

# Version number of this module.
ModuleVersion = '1.0.10'
ModuleVersion = '1.0.11'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
4 changes: 2 additions & 2 deletions VMware.VMC.NSXT.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ Function Remove-NSXTFirewall {
Write-Host -ForegroundColor Red "`nThe NSX-T Proxy session is no longer valid, please re-run the Connect-NSXTProxy cmdlet to retrieve a new token`n"
break
} else {
Write-Error "Error in creating new NSX-T Firewall Rule"
Write-Error "Error in removing NSX-T Firewall Rule"
Write-Error "`n($_.Exception.Message)`n"
break
}
Expand Down Expand Up @@ -1077,7 +1077,7 @@ Function Remove-NSXTGroup {
Write-Host -ForegroundColor Red "`nThe NSX-T Proxy session is no longer valid, please re-run the Connect-NSXTProxy cmdlet to retrieve a new token`n"
break
} else {
Write-Error "Error in creating new NSX-T Group"
Write-Error "Error in removing NSX-T Group"
Write-Error "`n($_.Exception.Message)`n"
break
}
Expand Down