|
|
@ -976,6 +976,11 @@ class Runner(object):
|
|
|
|
data = self._low_level_exec_command(conn, cmd, tmp, sudoable=True)
|
|
|
|
data = self._low_level_exec_command(conn, cmd, tmp, sudoable=True)
|
|
|
|
data2 = utils.last_non_blank_line(data['stdout'])
|
|
|
|
data2 = utils.last_non_blank_line(data['stdout'])
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
|
|
|
|
if data2 == '':
|
|
|
|
|
|
|
|
# this may happen if the connection to the remote server
|
|
|
|
|
|
|
|
# failed, so just return "INVALIDMD5SUM" to avoid errors
|
|
|
|
|
|
|
|
return "INVALIDMD5SUM"
|
|
|
|
|
|
|
|
else:
|
|
|
|
return data2.split()[0]
|
|
|
|
return data2.split()[0]
|
|
|
|
except IndexError:
|
|
|
|
except IndexError:
|
|
|
|
sys.stderr.write("warning: md5sum command failed unusually, please report this to the list so it can be fixed\n")
|
|
|
|
sys.stderr.write("warning: md5sum command failed unusually, please report this to the list so it can be fixed\n")
|
|
|
|