From 7b0b3d9415323534a85c284a3714358979cc5a3f Mon Sep 17 00:00:00 2001 From: Philippe Gregoire Date: Mon, 14 Aug 2017 14:25:19 -0400 Subject: [PATCH] Fix remote cmds cleanup When --remote-copy and --remote-exec are provided, args.remote_cmds_cleanup_pattern is not set. This patches fixes the evaluation of args.remote_cmds_cleanup_pattern and prevents cdist from throwing an exception when --remote-copy and --remote-exec are used. --- cdist/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/config.py b/cdist/config.py index cdff47eb..4cba4948 100644 --- a/cdist/config.py +++ b/cdist/config.py @@ -270,7 +270,7 @@ class Config(object): remote_copy = args.remote_copy_pattern.format(control_path) else: remote_copy = args.remote_copy - if args.remote_cmds_cleanup_pattern: + if 'remote_cmds_cleanup_pattern' in args: remote_cmds_cleanup = args.remote_cmds_cleanup_pattern.format( control_path) else: