Skip to content

Commit

Permalink
fix: runs tasks
Browse files Browse the repository at this point in the history
Ran `go fmt ./...` to apply formatting.
Ran `make generate` to build docs.

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam authored and Hi-Angel committed Dec 26, 2023
1 parent 3a9a79e commit e8dd735
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .web-docs/components/builder/vsphere-iso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,8 @@ boot time.

- `destroy` (bool) - If set to true, the VM will be destroyed after the builder completes

- `reuse_vm` (bool) - If a VM with the name exists, reuse it instead of creating a new one

<!-- End of code generated from the comments of the CreateConfig struct in builder/vsphere/iso/step_create.go; -->


Expand Down
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
1 change: 0 additions & 1 deletion 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)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@

- `destroy` (bool) - If set to true, the VM will be destroyed after the builder completes

- `reuse_vm` (bool) - If a VM with the name exists, reuse it instead of creating a new one

<!-- End of code generated from the comments of the CreateConfig struct in builder/vsphere/iso/step_create.go; -->

0 comments on commit e8dd735

Please sign in to comment.