Rename backup process label
This commit is contained in:
parent
d819200b7e
commit
197cc16b01
|
@ -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',
|
||||
},
|
||||
},
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue