summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-09-19 23:55:54 +0200
committerCarl Hetherington <cth@carlh.net>2022-09-19 23:55:54 +0200
commit96cbaf54132f8b3c3ebd4b02e44e72034c56965c (patch)
treebac62eae03d55e16fdfa1cb78b54d95dab6d04db
parent0b1c33732bcc66d00d4486c2ccf7f8111a076ae2 (diff)
I don't think we need to clean up target if we don't even create it successfully.
-rwxr-xr-xcdist2
1 files changed, 1 insertions, 1 deletions
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: