From 96cbaf54132f8b3c3ebd4b02e44e72034c56965c Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 19 Sep 2022 23:55:54 +0200 Subject: [PATCH] I don't think we need to clean up target if we don't even create it successfully. --- cdist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist b/cdist index 73ab3f4..49589b7 100755 --- a/cdist +++ b/cdist @@ -1241,8 +1241,8 @@ def main(): if args.target is None: raise Error('you must specify -t or --target') + target = target_factory(args) try: - target = target_factory(args) target.build(args.project, args.checkout, get_command_line_options(args)) finally: if not args.keep: -- 2.30.2