From 75dcc828ad00011f50e1a6de482ad034a353eb85 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 18 Feb 2014 10:40:09 -0800 Subject: [PATCH] kernel/v2: fix error where options could be not hash --- plugins/kernel_v2/config/vm.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 40f287529..89340264d 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -203,8 +203,7 @@ module VagrantPlugins # # @param [Symbol] type Type of network # @param [Hash] options Options for the network. - def network(type, options=nil) - options ||= {} + def network(type, **options) options = options.dup options[:protocol] ||= "tcp"