Skip to content

Commit

Permalink
Use a proper args array for V1 forwarded ports. Fixes hashicorp#1330
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jan 22, 2013
1 parent 1fd74da commit 44d6b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/kernel_v1/config/vm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def forward_port(guestport, hostport, options=nil)
network_options[:virtualbox__protocol] = options[:protocol]

# Just append the forwarded port to the networks
@networks << [:forwarded_port, guestport, hostport, network_options]
@networks << [:forwarded_port, [guestport, hostport, network_options]]
end

def share_folder(name, guestpath, hostpath, opts=nil)
Expand Down

0 comments on commit 44d6b9a

Please sign in to comment.