From 1d24fdb7c353f939816ab93b49b5af3ec4a091ee Mon Sep 17 00:00:00 2001 From: yuvipanda Date: Mon, 22 May 2017 14:53:44 -0700 Subject: [PATCH] Make sure that the cleanup is actually conditional --- builder/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/builder/app.py b/builder/app.py index 372367de..e478d879 100644 --- a/builder/app.py +++ b/builder/app.py @@ -69,6 +69,7 @@ class Builder(Application): 'source': 'Builder.source_url', 'ref': 'Builder.source_ref', 'output': 'Builder.output_image_spec', + 'clean': 'Builder.cleanup_checkout', 'f': 'Builder.config_file', }) @@ -155,7 +156,8 @@ class Builder(Application): self.log.info('Pushing image', extra=dict(progress=layers, phase='pushing')) last_emit_time = time.time() - shutil.rmtree(output_path) + if self.cleanup_checkout: + shutil.rmtree(output_path) if __name__ == '__main__':