diff --git a/Testing/sirius.ps1 b/Testing/sirius.ps1 index 2b93d59..0d417e5 100644 --- a/Testing/sirius.ps1 +++ b/Testing/sirius.ps1 @@ -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 } } }