-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PUP-10861) Don't JSON.dump single fact values
The `puppet facts show --value-only` option prints just the value for a single fact. Previously, the value was pretty printed using JSON.dump, which emitted a quoted string. Now just print the string, so that the value can be parsed via automation, like export OSFAMILY=`puppet facts show os.family --value-only` Also add a test for multiple fact names as the `--value-only` option.
- Loading branch information
1 parent
3a8626f
commit 0de8cfc
Showing
2 changed files
with
52 additions
and
5 deletions.
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