Added stub implementation of filters

This commit is contained in:
Dietmar Schinnerl 2012-08-11 15:55:14 +02:00
commit 993bb5c6f1
2 changed files with 11 additions and 3 deletions

View file

@ -655,7 +655,7 @@ class Runner(object):
cmd = " || ".join(md5s)
cmd = "%s; %s || (echo \"${rc} %s\")" % (test, cmd, path)
return self._low_level_exec_command(conn, cmd, tmp, sudoable=False).split()[0]
return utils.last_non_blank_line(self._low_level_exec_command(conn, cmd, tmp, sudoable=False)).split()[0]
# *****************************************************
@ -675,7 +675,7 @@ class Runner(object):
cmd += ' && echo %s' % basetmp
result = self._low_level_exec_command(conn, cmd, None, sudoable=False)
return result.split("\n")[0].strip() + '/'
return utils.last_non_blank_line(result.split("\n"))[0].strip() + '/'
# *****************************************************