Merge pull request #449 from cdburkard/devel/cluster_controlPaths

use ControlPersist ssh option to fix ControlPath shutdown
This commit is contained in:
lantz
2014-11-23 14:59:11 -08:00
+2 -1
View File
@@ -135,7 +135,8 @@ class RemoteMixin( object ):
self.sshcmd = [ 'sudo', '-E', '-u', self.user ] + self.sshbase
if self.controlPath:
self.sshcmd += [ '-o', 'ControlPath=' + self.controlPath,
'-o', 'ControlMaster=auto' ]
'-o', 'ControlMaster=auto',
'-o', 'ControlPersist=' + '1' ]
self.sshcmd = self.sshcmd + [ self.dest ]
self.isRemote = True
else: