2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-23 12:51:10 +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

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>) {