Skip to content

Commit 1b22f93

Browse files
committed
Updated scripts to disconnect at the end.
1 parent e72c921 commit 1b22f93

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

upi/vsphere/powercli/upi-destroy.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,4 +77,6 @@ foreach ($policy in $storagePolicies) {
7777

7878
# Clean up tags
7979
Remove-Tag -Tag $tag -confirm:$false
80-
Remove-TagCategory -Category $tagCategory -confirm:$false
80+
Remove-TagCategory -Category $tagCategory -confirm:$false
81+
82+
Disconnect-VIServer -Server $vcenter -Force:$true -Confirm:$false

upi/vsphere/powercli/upi.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,5 +517,6 @@ if ($waitForComplete)
517517

518518
Get-Job | Remove-Job
519519

520+
Disconnect-VIServer -Server $vcenter -Force:$true -Confirm:$false
520521

521522
Write-Output "Install Complete!"

0 commit comments

Comments
 (0)