Fix ping command
This commit is contained in:
parent
30b4f51a54
commit
330b90fa10
1 changed files with 1 additions and 1 deletions
|
@ -125,7 +125,7 @@ module Vagrant
|
||||||
# Sometimes lxc reports the container as running before DNS is returning
|
# Sometimes lxc reports the container as running before DNS is returning
|
||||||
# the right IP, so have to try a couple of times sometimes.
|
# 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
|
# 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
|
if r.exit_code != 0
|
||||||
raise LXC::Errors::ExecuteError, 'Unable to reach container'
|
raise LXC::Errors::ExecuteError, 'Unable to reach container'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue