Create control path only if needed.
This commit is contained in:
parent
08bc38dd0f
commit
47d72fb83a
1 changed files with 4 additions and 1 deletions
|
@ -272,6 +272,9 @@ class Config(object):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def _resolve_remote_cmds(cls, args):
|
def _resolve_remote_cmds(cls, args):
|
||||||
|
if (args.remote_exec_pattern or
|
||||||
|
args.remote_copy_pattern or
|
||||||
|
args.remote_cmds_cleanup_pattern):
|
||||||
control_path = cls._resolve_ssh_control_path()
|
control_path = cls._resolve_ssh_control_path()
|
||||||
# If we constructed patterns for remote commands then there is
|
# If we constructed patterns for remote commands then there is
|
||||||
# placeholder for ssh ControlPath, format it and we have unique
|
# placeholder for ssh ControlPath, format it and we have unique
|
||||||
|
|
Loading…
Reference in a new issue