Rename backup process label

This commit is contained in:
Einar Forselv 2019-04-17 03:28:31 +02:00
parent d819200b7e
commit 197cc16b01
2 changed files with 2 additions and 2 deletions

View File

@ -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):

View File

@ -155,7 +155,7 @@ class ResticBackupTests(unittest.TestCase):
{
'service': 'backup_runner',
'labels': {
'restic-volume-backup.runner': 'True',
'restic-volume-backup.backup_process': 'True',
},
},
]