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

Commit 9e775af

Browse files
committed
Updated to -in operator
1 parent eb8edaf commit 9e775af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ 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 -contains @('RUNNING','ACQUIRING','QUEUED','FINISHING')) {
76+
if ($ValidateRequest -in @('RUNNING','ACQUIRING','QUEUED','FINISHING')) {
7777
Start-Sleep 5
7878
} elseif ($ValidateRequest -eq 'SUCCEEDED' -and $ValidatePowerOn -eq 'PoweredOn') {
7979
break

0 commit comments

Comments
 (0)