Skip to content

Commit

Permalink
v1.0.5: bugfix: error in case of empty trusted host list
Browse files Browse the repository at this point in the history
  • Loading branch information
jagorjat committed Jan 28, 2015
1 parent e88aeb2 commit 9a2bcd9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion lib/vagrant-vmm/scripts/utils/manage_trusted_hosts.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ function Add-To-Trusted($address)
$trusted_hosts = get-item wsman:\localhost\Client\TrustedHosts
if ( $address -as [ipaddress] -and !$trusted_hosts.Value.Contains($address) )
{
$new_th_values = "$($trusted_hosts.Value),$address"
if ($trusted_hosts.Value)
{
$new_th_values = "$($trusted_hosts.Value),$address"
} else {
$new_th_values = $address
}
set-item wsman:\localhost\Client\TrustedHosts $new_th_values -Force
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/vagrant-vmm/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module VagrantPlugins
module VMM
VERSION = "1.0.4"
VERSION = "1.0.5"
end
end

0 comments on commit 9a2bcd9

Please sign in to comment.