Set default remote_cmds_cleanup_pattern

Fixes an exception when --remote-copy and --remote-exec are used.
This commit is contained in:
Philippe Gregoire 2017-08-14 16:13:57 -04:00
parent 7b0b3d9415
commit 61b52ac806
1 changed files with 2 additions and 1 deletions

View File

@ -80,6 +80,7 @@ class Config(object):
@staticmethod
def construct_remote_exec_copy_patterns(args):
# default remote cmd patterns
args.remote_cmds_cleanup_pattern = ""
args.remote_exec_pattern = None
args.remote_copy_pattern = None
@ -270,7 +271,7 @@ class Config(object):
remote_copy = args.remote_copy_pattern.format(control_path)
else:
remote_copy = args.remote_copy
if 'remote_cmds_cleanup_pattern' in args:
if args.remote_cmds_cleanup_pattern:
remote_cmds_cleanup = args.remote_cmds_cleanup_pattern.format(
control_path)
else: