Skip to content

Commit a73e664

Browse files
authored
Merge pull request #160 from deckhouse/fix-backup
[controller] Small fix in backup
2 parents ce2ef75 + a3ae5b6 commit a73e664

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

images/metadata-backup/backup.py

+2
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ def create_backup(backup_type, labels={}):
119119
full_completed_list.append(item['metadata']['name'])
120120
completed_list = full_completed_list[-retention:]
121121
for backup_name in backup_list:
122+
if not re.search(r'^sds-replicated-volume-\d+-backup-', backup_name):
123+
continue
122124
backup_cut_name = re.search(r'^sds-replicated-volume-\d+-backup-', backup_name).group(0)
123125
if f'{backup_cut_name}0' in completed_list:
124126
continue

0 commit comments

Comments
 (0)