Skip to content

Commit

Permalink
fix: go fmt
Browse files Browse the repository at this point in the history
Ran `go fmt ./...`.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Dec 19, 2023
1 parent 9aa575e commit 6d744fa
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion builder/vsphere/common/step_add_cdrom.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type CDRomConfig struct {
}

type StepAddCDRom struct {
Config *CDRomConfig
Config *CDRomConfig
ReuseVM bool
}

Expand Down
2 changes: 1 addition & 1 deletion builder/vsphere/iso/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func (b *Builder) Run(ctx context.Context, ui packersdk.Ui, hook packersdk.Hook)
FlagConfig: b.config.FlagConfig,
},
&common.StepAddCDRom{
Config: &b.config.CDRomConfig,
Config: &b.config.CDRomConfig,
ReuseVM: b.config.CreateConfig.ReuseVM,
},
&common.StepConfigParams{
Expand Down
60 changes: 30 additions & 30 deletions builder/vsphere/iso/config.hcl2spec.go

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

2 changes: 1 addition & 1 deletion builder/vsphere/iso/step_create.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ func (s *StepCreateVM) Run(_ context.Context, state multistep.StateBag) multiste
}

func (s *StepCreateVM) Cleanup(state multistep.StateBag) {
if ! s.Config.ReuseVM {
if !s.Config.ReuseVM {
common.CleanupVM(state)
}
}

0 comments on commit 6d744fa

Please sign in to comment.