Added time_out to os_execute_command("uptime") invocation
The call to os_execute_command occasionally hangs. Using new time_out
parm to prevent this.
Change-Id: Iad4e54ddb5fb3f1f1cb2ce6c9a9e12e81fdb25e4
Signed-off-by: Michael Walsh <micwalsh@us.ibm.com>
diff --git a/lib/state.py b/lib/state.py
index 93c0eb6..1e117b9 100755
--- a/lib/state.py
+++ b/lib/state.py
@@ -362,7 +362,8 @@
if must_login:
output, stderr, rc = bsu.os_execute_command("uptime", quiet=quiet,
- ignore_err=1)
+ ignore_err=1,
+ time_out=20)
if rc == 0:
os_login = 1
os_run_cmd = 1