Skip to content

Commit

Permalink
feat: enhancements to ila deployment error handling
Browse files Browse the repository at this point in the history
- No CHANGELOG.md update requried

Signed-off-by: Gary Blake <gblake@vmware.com>
  • Loading branch information
GaryJBlake committed Dec 22, 2023
1 parent acf6450 commit a852cb6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion PowerValidatedSolutions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'PowerValidatedSolutions.psm1'

# Version number of this module.
ModuleVersion = '2.8.0.1022'
ModuleVersion = '2.8.0.1023'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
20 changes: 14 additions & 6 deletions PowerValidatedSolutions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -10668,11 +10668,15 @@ Function Undo-vRLIDeployment {
if ($newRequest) {
if ($PsBoundParameters.ContainsKey("monitor")) {
Start-Sleep 10
Watch-vRSLCMRequest -vmid $($newRequest.requestId)
$status = Watch-vRSLCMRequest -vmid $($newRequest.requestId)
if (!(Get-vRSLCMEnvironment | Where-Object {$_.environmentName -eq $environmentName})) {
Write-Output "Removal of VMware Aria Operations for Logs from VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): SUCCESSFUL"
if ($status -match "COMPLETED") {
Write-Output "Removal of VMware Aria Operations for Logs from Environment ($environmentName) VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): SUCCESSFUL"
} else {
Write-Error "Removal of VMware Aria Operations for Logs from Environment ($environmentName) in VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
}
} else {
Write-Error "Removal of VMware Aria Operations for Logs from VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
Write-Error "Removal of VMware Aria Operations for Logs from Environment ($environmentName) VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
}
} else {
Write-Output "Removal request of VMware Aria Operations for Logs Submitted Successfully (Request Ref: $($newRequest.requestId))"
Expand Down Expand Up @@ -13757,11 +13761,15 @@ Function Undo-vROPSDeployment {
if ($newRequest) {
if ($PsBoundParameters.ContainsKey("monitor")) {
Start-Sleep 10
Watch-vRSLCMRequest -vmid $($newRequest.requestId)
$status = Watch-vRSLCMRequest -vmid $($newRequest.requestId)
if (!(Get-vRSLCMEnvironment | Where-Object {$_.environmentName -eq $environmentName})) {
Write-Output "Removal of VMware Aria Operations from VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): SUCCESSFUL"
if ($status -match "COMPLETED") {
Write-Output "Removal of VMware Aria Operations from Environment ($environmentName) in VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): SUCCESSFUL"
} else {
Write-Error "Removal of VMware Aria Operations from Environment ($environmentName) in VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
}
} else {
Write-Error "Removal of VMware Aria Operations from VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
Write-Error "Removal of VMware Aria Operations from Environment ($environmentName) in VMware Aria Suite Lifecycle ($($vcfVrslcmDetails.fqdn)): POST_VALIDATION_FAILED"
}
} else {
Write-Output "Removal request of VMware Aria Operations Submitted Successfully (Request Ref: $($newRequest.requestId))"
Expand Down

0 comments on commit a852cb6

Please sign in to comment.