-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(WIP)(MODULES-6895) Extract Trigger manifest validation
- Refactor from_manifest_hash, moving the canonicalization and validation into a completely separate method called on the V1 class called canonicalize_and_validate_manifest - Simplify code as appropriate, removing unnecessary or verbose code - for instance .keys.include? becomes .key? - Change the raised error type from Puppet::Error to ArgumentError to be more consistent with Ruby. This exception type can be caught and raised as a Puppet::Error later if necessary - Update tests to understand this error type
- Loading branch information
Showing
2 changed files
with
110 additions
and
47 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