transitioning to scvmm

This commit is contained in:
ofilter 2022-04-07 06:23:06 +02:00
parent 4edadde27d
commit 30694dc72f

View File

@ -36,10 +36,8 @@ class VirtualizationServer {
$this.__load_hosts()
}
[Array] $__host_list=@()
[Array] $host_list{
return $this.__host_list
}
hidden [Array] $__host_list=@()
[Array] $host_list = $this.__host_list
}
class SystemCenterVirtualMachineManager {
@ -90,9 +88,8 @@ class VirtualizerManager{
}
return $result
}
[Hashtable] $found_vh{
return $this.__found_vh
}
[Hashtable] $found_vh = $this.__found_vh
append_session($type,$url)
{
$type.GetType().IsValueType
@ -120,7 +117,7 @@ class VirtualizerManager{
}
}
__append_vhost($vhost,$source_url){
if ($this.__host_list[$vhost.Name] -isnot [system.Hashtable]){
if ($this.__host_list[$vhost.Name] -isnot [Hashtable]){
$this.__host_list[$vhost.Name]=@{}
}
$this.__host_list[$vhost.Name.ToLower()][$source_url]=$vhost
@ -145,7 +142,7 @@ class VirtualizerManager{
}
}
else {
[String]::Format("`t---- Couldn't be found ",$server.url) | Write-Host
[String]::Format("`t---- Couldn't be found") | Write-Host
}
}
}