Fix ping command option for macbook users
Changes:
- MAC users using ping which doesnt support -w option
Change-Id: I45859fb45b184303080cd14a0b6f64578e8dc1a2
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_collector.py b/ffdc/ffdc_collector.py
index 121cb74..e1a9f5d 100644
--- a/ffdc/ffdc_collector.py
+++ b/ffdc/ffdc_collector.py
@@ -101,7 +101,7 @@
Check if target system is ping-able.
"""
- response = os.system("ping -c 1 -w 2 %s 2>&1 >/dev/null" % self.hostname)
+ response = os.system("ping -c 1 %s 2>&1 >/dev/null" % self.hostname)
if response == 0:
print("\n\t[Check] %s is ping-able.\t\t [OK]" % self.hostname)
return True