2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 09:36:41 +00:00

Merge pull request #2531 from zet809/fix_issue_2501

Return error if no /usr/bin/fping is available
This commit is contained in:
Mark Gurevich 2017-02-22 21:53:52 -05:00 committed by GitHub
commit 64ce9f4597

View File

@ -162,6 +162,11 @@ sub fping_pping {
}
else
{
if (!-x '/usr/bin/fping')
{
print "fping is not available, please install missing package fping.\n";
exit 1;
}
open(FPING, "fping " . join(' ', @$nodes) . " 2>&1 |") or die("Cannot open fping pipe: $!");
}
while (<FPING>) {