mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 09:13:12 +00:00
Fix trailing slash on returned temp path.
This commit is contained in:
@@ -1049,7 +1049,7 @@ class Runner(object):
|
||||
output = output + ": %s" % result['stdout']
|
||||
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
|
||||
# written to locations in /.
|
||||
if rc == '/':
|
||||
|
||||
Reference in New Issue
Block a user