mirror of
https://github.com/garethgeorge/backrest.git
synced 2025-12-15 01:55:35 +00:00
fix: make instance ID required field
This commit is contained in:
@@ -191,7 +191,11 @@ func planForSnapshot(snapshot *v1.ResticSnapshot) string {
|
||||
}
|
||||
|
||||
func instanceIDForSnapshot(snapshot *v1.ResticSnapshot) string {
|
||||
return repo.InstanceIDFromTags(snapshot.Tags)
|
||||
id := repo.InstanceIDFromTags(snapshot.Tags)
|
||||
if id != "" {
|
||||
return id
|
||||
}
|
||||
return InstanceIDForUnassociatedOperations
|
||||
}
|
||||
|
||||
// tryMigrate checks if the snapshots use the latest backrest tag set and migrates them if necessary.
|
||||
|
||||
Reference in New Issue
Block a user