Commit 67517e96 by James Tanner

Fixes #6567 put the git wrapper script in the module temp dir

parent 324a943e
......@@ -1142,3 +1142,5 @@ class AnsibleModule(object):
break
return '%.2f %s' % (float(size)/ limit, suffix)
def get_module_path():
return os.path.dirname(os.path.realpath(__file__))
......@@ -143,7 +143,8 @@ import re
import tempfile
def write_ssh_wrapper():
fd, wrapper_path = tempfile.mkstemp()
module_dir = get_module_path()
fd, wrapper_path = tempfile.mkstemp(prefix=module_dir + '/')
fh = os.fdopen(fd, 'w+b')
template = """#!/bin/sh
if [ -z "$GIT_SSH_OPTS" ]; then
......
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