Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit 71f7a65

Browse files
committed
Merged Christoph validatelivemount changes
1 parent a570c73 commit 71f7a65

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ task ValidateLiveMount {
7373
$ValidateRequest = (Get-RubrikRequest -id $Mount.id -Type vmware/vm).status
7474
$ValidatePowerOn = (Get-VM -Name $Config.virtualMachines[$i].mountName -ErrorAction:SilentlyContinue).PowerState
7575
Write-Verbose -Message "$($Config.virtualMachines[$i].mountName) Status: Request is $ValidateRequest, PowerState is $ValidatePowerOn" -Verbose
76-
if ($ValidateRequest -eq 'RUNNING' -and $ValidatePowerOn -ne 'PoweredOn') {
76+
if (($ValidateRequest -eq 'RUNNING' -or $ValidateRequest -eq 'ACQUIRING' -or $ValidateRequest -eq 'QUEUED' -or $ValidateRequest -eq 'FINISHING')) {
7777
Start-Sleep 5
7878
} elseif ($ValidateRequest -eq 'SUCCEEDED' -and $ValidatePowerOn -eq 'PoweredOn') {
7979
break
8080
} else {
81-
#throw "$($Config.virtualMachines[$i].mountName) mount failed, exiting Build script. Previously live mounted VMs will continue running"
81+
throw "$($Config.virtualMachines[$i].mountName) mount failed, exiting Build script. Previously live mounted VMs will continue running"
8282
}
8383
}
8484
$i++

0 commit comments

Comments
 (0)