summaryrefslogtreecommitdiff
path: root/morphlib/plugins/gc_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/plugins/gc_plugin.py')
-rw-r--r--morphlib/plugins/gc_plugin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/morphlib/plugins/gc_plugin.py b/morphlib/plugins/gc_plugin.py
index 1adabe78..abfa1a30 100644
--- a/morphlib/plugins/gc_plugin.py
+++ b/morphlib/plugins/gc_plugin.py
@@ -19,6 +19,7 @@ import os
import shutil
import time
+import fs.osfs
import cliapp
import morphlib
@@ -114,7 +115,7 @@ class GCPlugin(cliapp.Plugin):
chatty=True)
return
lac = morphlib.localartifactcache.LocalArtifactCache(
- os.path.join(cache_path, 'artifacts'))
+ fs.osfs.OSFS(os.path.join(cache_path, 'artifacts')))
max_age, min_age = self.calculate_delete_range()
logging.debug('Must remove artifacts older than timestamp %d'
% max_age)