Skip to content

Commit

Permalink
feat(bsu): rename option to skip_create_omi
Browse files Browse the repository at this point in the history
  • Loading branch information
lde authored and outscale-mgo committed Apr 8, 2024
1 parent ee86c77 commit ae55667
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions builder/bsu/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ type Config struct {
osccommon.BlockDevices `mapstructure:",squash"`
osccommon.RunConfig `mapstructure:",squash"`
VolumeRunTags osccommon.TagMap `mapstructure:"run_volume_tags"`
SkipSnapshot bool `mapstructure:"skip_snapshot"`
SkipCreateOmi bool `mapstructure:"skip_create_omi"`

ctx interpolate.Context
}
Expand Down Expand Up @@ -184,7 +184,7 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
},
}

if !b.config.SkipSnapshot {
if !b.config.SkipCreateOmi {
steps = append(steps,
&stepCreateOMI{
RawRegion: b.config.RawRegion,
Expand Down
4 changes: 2 additions & 2 deletions builder/bsu/builder.hcl2spec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/builders/bsu.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -159,12 +159,12 @@ builder.
shutdown in case Packer exits ungracefully. Possible values are "stop" and
"terminate", default is `stop`.

- `skip_create_omi` (boolean) - Set to true if you want to skip snapshot creation.
No image will be created if set to true. Default `false`.

- `skip_region_validation` (boolean) - Set to true if you want to skip
validation of the region configuration option. Default `false`.

- `skip_snapshot` (boolean) - Set to true if you want to skip snapshot creation.
No image will be created if set to true. Default `false`.

- `snapshot_groups` (array of strings) - A list of groups that have access to
create volumes from the snapshot(s). By default no groups have permission
to create volumes from the snapshot(s). `all` will make the snapshot
Expand Down

0 comments on commit ae55667

Please sign in to comment.