Update VMware.HV.Helper.psm1

Moving messaging so it doesn't repeat over and over.
This commit is contained in:
Jack McMichael
2018-12-05 13:00:12 -07:00
parent cea57f11d5
commit bd983dcd7f

View File

@@ -11543,9 +11543,9 @@ function Set-HVInstantCloneMaintenance {
if ($Enable) {
if ((Get-Annotation -Entity (Get-VMHost -Name $VMHost) -CustomAttribute "InstantClone.Maintenance").Value -eq ""){
Set-Annotation -Entity (Get-VMHost -Name $VMHost) -CustomAttribute "InstantClone.Maintenance" -Value "1" | Out-Null
Write-Host "Instant Clone Maintenance Mode: Enabling for $VMHost...(This could take some time)"
}
while ((Get-Annotation -Entity (Get-VMHost -Name $VMHost) -CustomAttribute "InstantClone.Maintenance").Value -ne "2") {
Write-Host "Instant Clone Maintenance Mode: Enabling for $VMHost...(This could take some time)"
Start-Sleep -Seconds 10
}
} elseif ($Disable) {