Do not filter mounts if volume backup is not enabled

This commit is contained in:
Einar Forselv
2019-12-04 22:25:09 +01:00
parent 91901ee35c
commit faa2d9ff7e
2 changed files with 8 additions and 1 deletions

View File

@@ -158,8 +158,12 @@ class Container:
return self._labels.get(name, None)
def filter_mounts(self):
"""Get all mounts for this container matching include/exclude filters"""
"""Get all mounts for this container matching include/exclude filters"""
filtered = []
if not self.volume_backup_enabled:
return filtered
if self._include:
for mount in self._mounts:
for pattern in self._include: