# File lib/vagrant-lxc/action/gc_private_network_bridges.rb, line 9 def call(env) was_running = env[:machine].provider.state.id == :running # Continue execution, we need the container to be stopped @app.call(env) was_running = was_running && env[:machine].provider.state.id != :running if was_running && private_network_configured?(env[:machine].config) private_network_configured?(env[:machine].config) remove_bridges_that_are_not_in_use(env) end end