From 197cc16b016ed1c4129481e4f880d3d411da86a6 Mon Sep 17 00:00:00 2001 From: Einar Forselv Date: Wed, 17 Apr 2019 03:28:31 +0200 Subject: [PATCH] Rename backup process label --- restic_volume_backup/containers.py | 2 +- tests/tests.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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', }, }, ]