summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sherwood <paul.sherwood@codethink.co.uk>2014-06-07 08:21:17 +0000
committerPaul Sherwood <paul.sherwood@codethink.co.uk>2014-06-07 08:21:17 +0000
commitba5229b9b832c110b3817511ab0fac1419d83bb5 (patch)
tree59777f398e540c6c7a50b8934dd2c930d6ffb1cd
parente0d7338382ce69156de0514525ab3935971fcf85 (diff)
downloadmorph-ba5229b9b832c110b3817511ab0fac1419d83bb5.tar.gz
gc clears out deployments in tmpdir toobaserock/ps/gc-clear-deployments-too
-rw-r--r--morphlib/plugins/gc_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/plugins/gc_plugin.py b/morphlib/plugins/gc_plugin.py
index df736afe..75efddc4 100644
--- a/morphlib/plugins/gc_plugin.py
+++ b/morphlib/plugins/gc_plugin.py
@@ -59,7 +59,7 @@ class GCPlugin(cliapp.Plugin):
space.
It also removes any left over temporary chunks and staging areas
- from failed builds.
+ from failed builds, and any failed deployments.
'''
@@ -76,7 +76,7 @@ class GCPlugin(cliapp.Plugin):
def cleanup_tempdir(self, temp_path, min_space):
self.app.status(msg='Cleaning up temp dir %(temp_path)s',
temp_path=temp_path, chatty=True)
- for subdir in ('failed', 'chunks'):
+ for subdir in ('deployments', 'failed', 'chunks'):
if morphlib.util.get_bytes_free_in_path(temp_path) >= min_space:
self.app.status(msg='Not Removing subdirectory '
'%(subdir)s, enough space already cleared',