819329228a
It is simply the best/simplest solution and trying to prevent users from passing and integer here would be like opening a can of worms. Because: * we cannot make mapstructure validate our duration string ( with an UnmarshalJSON func etc.) * we cannot make mapstructure spit a string instead of a duration and packer will decode-encode-decode config. * the hcl2 generated code asks for a string, so this will be enforced by default. |
||
---|---|---|
.. | ||
artifact.go | ||
builder.go | ||
builder.hcl2spec.go | ||
builder_test.go | ||
driver.go | ||
ssh.go | ||
step_configure_qmp.go | ||
step_configure_vnc.go | ||
step_convert_disk.go | ||
step_copy_disk.go | ||
step_create_disk.go | ||
step_forward_ssh.go | ||
step_prepare_output_dir.go | ||
step_resize_disk.go | ||
step_run.go | ||
step_set_iso.go | ||
step_shutdown.go | ||
step_type_boot_command.go |