Skip to content

Commit

Permalink
Merge pull request #79 from ttres/master
Browse files Browse the repository at this point in the history
Reordering ping parameters to work with AIX.
  • Loading branch information
mizzy committed Apr 6, 2014
2 parents 6f14ee8 + b5efe15 commit b93edef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/specinfra/command/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def check_routing_table(destination)

def check_reachable(host, port, proto, timeout)
if port.nil?
"ping -n #{escape(host)} -w #{escape(timeout)} -c 2"
"ping -w #{escape(timeout)} -c 2 -n #{escape(host)}"
else
"nc -vvvvz#{escape(proto[0].chr)} #{escape(host)} #{escape(port)} -w #{escape(timeout)}"
end
Expand Down

0 comments on commit b93edef

Please sign in to comment.