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. |
||
---|---|---|
.. | ||
block_device.go | ||
builder.go | ||
builder_test.go | ||
root_block_device.go | ||
step_register_ami.go | ||
step_register_ami_test.go | ||
step_snapshot_volumes.go |