lib/vagrant-notify/action.rb in vagrant-notify-0.5.2 vs lib/vagrant-notify/action.rb in vagrant-notify-0.5.3
- old
+ new
@@ -29,10 +29,11 @@
b3.use PrepareData
b3.use Call, ServerIsRunning do |env3, b4|
if env3[:result]
env3[:machine].ui.success("vagrant-notify-server pid: #{env3[:notify_data][:pid]}")
else
- env3[:machine].ui.error("Unable to start notification server using #{env3[:machine].config.notify.bind_ip}")
+ env3[:machine].ui.error("Unable to start notification server using #{env3[:notify_data][:bind_ip]}")
+ env3[:notify_data][:pid] = env3[:notify_data][:port] = env3[:notify_data][:bind_ip] = nil
end
end
end
# Always install the command to make sure we can fix stale ips
# on the guest machine