mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #5835 from mrbanzai/ssh_wrapper_py24
Make `write_ssh_wrapper` work for Python 2.4
This commit is contained in:
commit
460adb4d36
1 changed files with 2 additions and 2 deletions
|
@ -142,8 +142,8 @@ import re
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
def write_ssh_wrapper():
|
def write_ssh_wrapper():
|
||||||
fh = tempfile.NamedTemporaryFile(delete=False)
|
fd, wrapper_path = tempfile.mkstemp()
|
||||||
wrapper_path = fh.name
|
fh = os.fdopen(fd, 'w+b')
|
||||||
template = """#!/bin/sh
|
template = """#!/bin/sh
|
||||||
if [ -z "$GIT_SSH_OPTS" ]; then
|
if [ -z "$GIT_SSH_OPTS" ]; then
|
||||||
BASEOPTS=""
|
BASEOPTS=""
|
||||||
|
|
Loading…
Reference in a new issue