Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to use SetInt in case if possible #174

Merged
merged 1 commit into from
Dec 1, 2016

Conversation

kron4eg
Copy link
Contributor

@kron4eg kron4eg commented Dec 1, 2016

In my config file I have many time.Duration fields, which were decoded perfectly fine with JSON, but with HCL it panicked, so here is the fix that will allow to decode aliased int types, like time.Duration.

Allows to decode aliased int types, like time.Duration
@mitchellh
Copy link
Contributor

LGTM.

@mitchellh mitchellh merged commit 37ab263 into hashicorp:master Dec 1, 2016
@kron4eg kron4eg deleted the decode-int branch December 1, 2016 14:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants