Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add block_volumes #105

Merged
merged 10 commits into from
Jan 29, 2025
Prev Previous commit
lint
Codelax committed Jan 28, 2025
commit 009a29435bc4e3a60c286288e3bb3afd71c9bac9
2 changes: 1 addition & 1 deletion builder/scaleway/config_block.go
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@ func prepareBlockVolumes(volumes []ConfigBlockVolume) *packersdk.MultiError {
volume := &volumes[i]

if volume.Name == "" {
volume.Name = fmt.Sprintf("packer-%s", uuid.TimeOrderedUUID())
volume.Name = "packer-" + uuid.TimeOrderedUUID()
}
if volume.SizeInGB != 0 && volume.SnapshotID != "" {
errs = packersdk.MultiErrorAppend(errs, fmt.Errorf("volume (index: %d) can't have a snapshot_id and a size", i))
Loading