Skip to content

Commit 4c6488a

Browse files
committed
v1.0.9 - refresh VMM on network config retrieval, set max session timeout to 4minutes
1 parent 9359822 commit 4c6488a

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/vagrant-vmm/scripts/get_network_config.ps1

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ $script_block = {
2121

2222

2323
$vm = Get-SCVirtualMachine -ID $vm_id
24+
$vm = Read-SCVirtualMachine -VM $vm
25+
2426
Write-host "Waiting for IP to be assigned for $($vm.ComputerNameString) (id: $vm_id)..."
2527
$ip = $null
2628
$tries = 0

lib/vagrant-vmm/scripts/utils/vmm_executor.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ function execute($block, $vmm_server_address, $proxy_server_address)
3535
} else
3636
{
3737
Add-To-Trusted $proxy_server_address
38-
$res = invoke-command -ComputerName $proxy_server_address -Credential $proxy_credential -ScriptBlock $block_to_run
38+
$so = New-PSSessionOption -IdleTimeout 240000
39+
$res = invoke-command -ComputerName $proxy_server_address -Credential $proxy_credential -ScriptBlock $block_to_run -SessionOption $so
3940
Remove-From-Trusted $proxy_server_address
4041
}
4142
return $res

lib/vagrant-vmm/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module VagrantPlugins
22
module VMM
3-
VERSION = "1.0.8"
3+
VERSION = "1.0.9"
44
end
55
end

0 commit comments

Comments
 (0)