diff --git a/restic_volume_backup/containers.py b/restic_volume_backup/containers.py index 7fa3550..b226ba4 100644 --- a/restic_volume_backup/containers.py +++ b/restic_volume_backup/containers.py @@ -43,7 +43,7 @@ class Container: @property def is_backup_process_container(self): """Is this container the running backup process?""" - return self.labels.get('restic-volume-backup.runner') == 'True' + return self.labels.get('restic-volume-backup.backup_process') == 'True' @property def is_running(self): diff --git a/tests/tests.py b/tests/tests.py index 24be44a..5531bef 100644 --- a/tests/tests.py +++ b/tests/tests.py @@ -155,7 +155,7 @@ class ResticBackupTests(unittest.TestCase): { 'service': 'backup_runner', 'labels': { - 'restic-volume-backup.runner': 'True', + 'restic-volume-backup.backup_process': 'True', }, }, ]