Request 'configure_networks' capability only if there actually are networks to configure

This commit is contained in:
Anton Dessiatov 2018-04-18 15:06:16 +07:00
parent 39f9a9d0b4
commit 8ba4865e0a

View File

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