Commit dd3f7c2d by Chris Church

Fix trailing slash on returned temp path.

parent 8a121fd6
...@@ -1049,7 +1049,7 @@ class Runner(object): ...@@ -1049,7 +1049,7 @@ class Runner(object):
output = output + ": %s" % result['stdout'] output = output + ": %s" % result['stdout']
raise errors.AnsibleError(output) raise errors.AnsibleError(output)
rc = utils.last_non_blank_line(result['stdout']).strip() + '/' rc = conn.shell.join_path(utils.last_non_blank_line(result['stdout']).strip(), '')
# Catch failure conditions, files should never be # Catch failure conditions, files should never be
# written to locations in /. # written to locations in /.
if rc == '/': if rc == '/':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment