Merge pull request #884 from anton-dessiatov/configure_networks

Only use 'configure_networks' capability if there actually are networks to be configured
This commit is contained in:
Darragh Bailey
2018-11-27 18:30:29 +00:00
committed by GitHub

View File

@@ -219,10 +219,12 @@ module VagrantPlugins
networks_to_configure << network networks_to_configure << network
end end
env[:ui].info I18n.t('vagrant.actions.vm.network.configuring') unless networks_to_configure.empty?
env[:machine].guest.capability( env[:ui].info I18n.t('vagrant.actions.vm.network.configuring')
:configure_networks, networks_to_configure env[:machine].guest.capability(
) :configure_networks, networks_to_configure
)
end
end end
end end