forked from puppetlabs/puppet-resource_api
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PDK-988) Remove mungify from non-
puppet resource
calls
The mungify introduced in puppetlabs#59 would also affect strings passed in as parameters through manifests (e.g. using `puppet apply` or the agent), masking input type errors. This change fixes the behaviour so that munging is only happening when the runtime environment is actually puppet resource. Of course, long-term it would be better to have the CLI itself mungify inputs from the CLI. Such an implementation could provider more specific error messages, and reduce code complexity here. For now, this solution works across all puppet versions, and provides the same functionality. versions.
- Loading branch information
Showing
3 changed files
with
78 additions
and
65 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
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