mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
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:
commit
4b85d12bae
@ -219,10 +219,12 @@ module VagrantPlugins
|
||||
networks_to_configure << network
|
||||
end
|
||||
|
||||
env[:ui].info I18n.t('vagrant.actions.vm.network.configuring')
|
||||
env[:machine].guest.capability(
|
||||
:configure_networks, networks_to_configure
|
||||
)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user