Skip to content

Commit

Permalink
Merge pull request ansible#5835 from mrbanzai/ssh_wrapper_py24
Browse files Browse the repository at this point in the history
Make `write_ssh_wrapper` work for Python 2.4
  • Loading branch information
mpdehaan committed Jan 31, 2014
2 parents a1afd69 + 8ccbf13 commit 460adb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/source_control/git
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@ import re
import tempfile

def write_ssh_wrapper():
fh = tempfile.NamedTemporaryFile(delete=False)
wrapper_path = fh.name
fd, wrapper_path = tempfile.mkstemp()
fh = os.fdopen(fd, 'w+b')
template = """#!/bin/sh
if [ -z "$GIT_SSH_OPTS" ]; then
BASEOPTS=""
Expand Down

0 comments on commit 460adb4

Please sign in to comment.