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 | ||
artifact_test.go | ||
builder.go | ||
builder.hcl2spec.go | ||
builder_test.go | ||
driver.go | ||
driver_2_2.go | ||
ssh.go | ||
step_add_box.go | ||
step_add_box_test.go | ||
step_create_vagrantfile.go | ||
step_create_vagrantfile_test.go | ||
step_package.go | ||
step_ssh_config.go | ||
step_up.go | ||
step_up_test.go |