mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-09-29 15:15:23 +00:00
Rename backup process label
This commit is contained in:
@@ -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):
|
||||
|
@@ -155,7 +155,7 @@ class ResticBackupTests(unittest.TestCase):
|
||||
{
|
||||
'service': 'backup_runner',
|
||||
'labels': {
|
||||
'restic-volume-backup.runner': 'True',
|
||||
'restic-volume-backup.backup_process': 'True',
|
||||
},
|
||||
},
|
||||
]
|
||||
|
Reference in New Issue
Block a user