From 9b7c9def3c54b75653346532ded9c5aece96ad33 Mon Sep 17 00:00:00 2001 From: Joe Julian Date: Fri, 17 Jul 2015 17:17:37 -0700 Subject: [PATCH] Removed comment Vagrant only requires an ip **if** `type` is set **and** is not `dhcp`. The only other type, currently, is `nfs`. Obviously nfs requires an IP so under that circumstance or if `type` is set to anything but dhcp, vagrant will error if an ip is not assigned. If `type` is `nil`, it is deleted from the hash. --- lib/vagrant-libvirt/action/create_networks.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/vagrant-libvirt/action/create_networks.rb b/lib/vagrant-libvirt/action/create_networks.rb index 2dd333a..45bf77e 100644 --- a/lib/vagrant-libvirt/action/create_networks.rb +++ b/lib/vagrant-libvirt/action/create_networks.rb @@ -63,9 +63,6 @@ module VagrantPlugins if @options[:ip] handle_ip_option(env) - # in vagrant 1.2.3 and later it is not possible to take this branch - # because cannot have name without ip - # https://github.com/mitchellh/vagrant/commit/cf2f6da4dbcb4f57c9cdb3b94dcd0bba62c5f5fd elsif @options[:network_name] handle_network_name_option(env) end