kernel/v2: fix error where options could be not hash

This commit is contained in:
Mitchell Hashimoto 2014-02-18 10:40:09 -08:00
parent 8159f248a7
commit 75dcc828ad
1 changed files with 1 additions and 2 deletions

View File

@ -203,8 +203,7 @@ module VagrantPlugins
# #
# @param [Symbol] type Type of network # @param [Symbol] type Type of network
# @param [Hash] options Options for the network. # @param [Hash] options Options for the network.
def network(type, options=nil) def network(type, **options)
options ||= {}
options = options.dup options = options.dup
options[:protocol] ||= "tcp" options[:protocol] ||= "tcp"