diff --git a/usr/lib/python3.6/lxcmgr/pkgmgr.py b/usr/lib/python3.6/lxcmgr/pkgmgr.py index af8bc4c..47d59ba 100644 --- a/usr/lib/python3.6/lxcmgr/pkgmgr.py +++ b/usr/lib/python3.6/lxcmgr/pkgmgr.py @@ -245,7 +245,7 @@ class PkgMgr: def purge_unused_layers(self): # Remove layers which are no longer used by any installed application - layers = set(os.list(LXC_STORAGE_DIR)) + layers = set(os.listdir(LXC_STORAGE_DIR)) for app in self.installed_packages['apps']: for container in self.installed_packages['apps'][app]['containers']: image = self.installed_packages['apps'][app]['containers'][container]['image']