summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTim <timothyasir@gluster.com>2011-08-05 16:05:58 +0530
committerTim <timothyasir@gluster.com>2011-08-05 16:17:11 +0530
commitf63dac07a99af3e700b25ed69fafa8f05a6d2aa7 (patch)
tree1ce6495e3df7b7643a6cd14cc95f685bb3a35c47 /src
parent879fd2f4d671136d20bb59f3a39890d283650c19 (diff)
Bug 3332 - format_device.py takes forever to execute the command.
Number of retries set to 1 second and the network timeout set to 1 second for wget
Diffstat (limited to 'src')
-rwxr-xr-xsrc/com.gluster.storage.management.gateway.scripts/src/format_device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com.gluster.storage.management.gateway.scripts/src/format_device.py b/src/com.gluster.storage.management.gateway.scripts/src/format_device.py
index a3099e59..e41baa0e 100755
--- a/src/com.gluster.storage.management.gateway.scripts/src/format_device.py
+++ b/src/com.gluster.storage.management.gateway.scripts/src/format_device.py
@@ -31,7 +31,7 @@ from optparse import OptionParser
def main():
- if Utils.runCommand("wget -q -O /dev/null %s" % Globals.AWS_WEB_SERVICE_URL) == 0:
+ if Utils.runCommand("wget -t 1 -T 1 -q -O /dev/null %s" % Globals.AWS_WEB_SERVICE_URL) == 0:
sys.stderr.write("format device unsupported")
sys.exit(1)