From 330b90fa10a5b9f42768c82d61f6da8f93915358 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 3 Mar 2013 00:21:41 -0300 Subject: [PATCH] Fix ping command --- lib/vagrant-lxc/container.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-lxc/container.rb b/lib/vagrant-lxc/container.rb index 0aa8981..4ae4386 100644 --- a/lib/vagrant-lxc/container.rb +++ b/lib/vagrant-lxc/container.rb @@ -125,7 +125,7 @@ module Vagrant # Sometimes lxc reports the container as running before DNS is returning # the right IP, so have to try a couple of times sometimes. # Tks to https://github.com/neerolyte/vagueant/blob/master/bin/vagueant#L318-L330 - r = raw "ping -c 1 #{ip} > /dev/null 2>&1" + r = raw 'ping', '-c', '1', ip if r.exit_code != 0 raise LXC::Errors::ExecuteError, 'Unable to reach container' end