packer-cn/provisioner/shell
Adrien Delorme 819329228a Change back to make sure all durations are a time.Duration
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.
2019-10-31 16:12:07 +01:00
..
provisioner.go Change back to make sure all durations are a time.Duration 2019-10-31 16:12:07 +01:00
provisioner.hcl2spec.go Change back to make sure all durations are a time.Duration 2019-10-31 16:12:07 +01:00
provisioner_test.go update shell provisioner tests 2018-08-29 11:10:49 -07:00
unix_reader.go provisioner/shell: comment on why we return right away if advance == 0 2013-10-15 09:48:12 -10:00
unix_reader_test.go provisioner/shell: fix EOF detection 2013-10-15 05:56:10 -07:00