|
@@ -35,8 +35,11 @@ def _ssh_sock(create=True):
|
|
|
if _ssh_sock_path is None:
|
|
if _ssh_sock_path is None:
|
|
|
if not create:
|
|
if not create:
|
|
|
return None
|
|
return None
|
|
|
|
|
+ dir = '/tmp'
|
|
|
|
|
+ if not os.path.exists(dir):
|
|
|
|
|
+ dir = tempfile.gettempdir()
|
|
|
_ssh_sock_path = os.path.join(
|
|
_ssh_sock_path = os.path.join(
|
|
|
- tempfile.mkdtemp('', 'ssh-'),
|
|
|
|
|
|
|
+ tempfile.mkdtemp('', 'ssh-', dir),
|
|
|
'master-%r@%h:%p')
|
|
'master-%r@%h:%p')
|
|
|
return _ssh_sock_path
|
|
return _ssh_sock_path
|
|
|
|
|
|