Skip to content

Commit

Permalink
fix: ensure isoPath is a string variable
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-espie committed Jun 27, 2024
1 parent 342b97a commit ec7086c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion builder/vmware/common/step_create_disks.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ type StepCreateDisks struct {
func (s *StepCreateDisks) Run(ctx context.Context, state multistep.StateBag) multistep.StepAction {
driver := state.Get("driver").(Driver)
ui := state.Get("ui").(packersdk.Ui)
isoPath := state.Get("iso_path").(string)
isoPath, err := state.Get("iso_path").(string)
if !err {
isoPath = ""
}

ui.Say("Creating required virtual machine disks")

Expand Down

0 comments on commit ec7086c

Please sign in to comment.