-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously, the type would check the type of value being passed in the DSL and would use that type when setting the value in the Hocon config file (i.e. a string value would be a string in the config file, and an array would be an array value). The problem is that versions of Puppet < 4.0.0 stringify all values passed in the DSL, so it was impossible to pass a true numeric value via the DSL (since it would be stringified). This commit updates the type validation to account for this and implements a munge block to convert the value type to a numeric. A test for this case has also been added.
- Loading branch information
Gary Larizza
committed
Apr 29, 2015
1 parent
fed641a
commit 248aedc
Showing
3 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters