Skip to content

Commit

Permalink
Merge pull request #12888 from roosterfish/fix_backup_name
Browse files Browse the repository at this point in the history
Storage: Don't use storage name when creating source snapshots
  • Loading branch information
tomponline authored Feb 14, 2024
2 parents 50f721c + afbbc4f commit c167074
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxd/storage/backend_lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ func (b *lxdBackend) CreateInstanceFromBackup(srcBackup backup.Info, srcData io.

sourceSnapshots := make([]drivers.Volume, 0, len(srcBackup.Config.VolumeSnapshots))
for _, volSnap := range srcBackup.Config.VolumeSnapshots {
snapshotName := drivers.GetSnapshotVolumeName(vol.Name(), volSnap.Name)
snapshotName := drivers.GetSnapshotVolumeName(srcBackup.Name, volSnap.Name)
snapshotStorageName := project.Instance(srcBackup.Project, snapshotName)
sourceSnapshots = append(sourceSnapshots, b.GetVolume(volType, contentType, snapshotStorageName, volSnap.Config))
}
Expand Down

0 comments on commit c167074

Please sign in to comment.