Added visual clue for debugging

Minor error fixing
This commit is contained in:
ofilter 2022-04-08 16:56:12 +02:00
parent 259394214e
commit 8c19676906

View File

@ -31,6 +31,7 @@ class VirtualizationServer {
}
load_hosts(){
[String]::Format("Loading VM from: {0}",$this.url) | Write-Debug
$this.__host_list=@()
$this.__load_hosts()
}
@ -102,7 +103,7 @@ class VirtualizerManager{
[String]::Format("{0}",$Error[0]) | Write-Debug
}
finally {
$message = [string]::Format(">>`tStatus {0}",@("NotOK","OK"))
$message = [string]::Format(">>`tStatus {0}",@("NotOK","OK")[$result])
Write-Host $message
}
return $result