Fix trailing slash on returned temp path.
This commit is contained in:
parent
8a121fd6ae
commit
dd3f7c2dab
1 changed files with 1 additions and 1 deletions
|
@ -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 == '/':
|
||||||
|
|
Loading…
Reference in a new issue