suppressed print debugging

This commit is contained in:
Karl-Wilfried Zimmer 2024-02-08 23:23:36 +01:00
parent f09e904fe3
commit d9eb681007

View File

@ -50,13 +50,13 @@ function ProduceHashMap {
if($HashTable.ContainsKey($vmName)){ if($HashTable.ContainsKey($vmName)){
$array = $HashTable[$vmName] $array = $HashTable[$vmName]
$lastState=($array[$array.Count-1]).state $lastState=($array[$array.Count-1]).state
Write-Host $lastState #Write-Host $lastState
Write-Host $backUpState #Write-Host $backUpState
if (($lastState -eq 'Failed') -and ($backUpState -eq 'Failed')) { if (($lastState -eq 'Failed') -and ($backUpState -eq 'Failed')) {
Write-Host "skipping" #Write-Host "skipping"
continue continue
} }
Write-Host "continuing" #Write-Host "continuing"
try { try {
$timeStamp = ConvertDate($date) $timeStamp = ConvertDate($date)
$array += New-Object psobject -Property @{ $array += New-Object psobject -Property @{