forked from puppetlabs/puppet
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support arrays of deferred parameter values
If an `exec` resource's `environment` parameter was specified as an array of values, where at least one of the values was deferred, then validation failed with: undefined method `=~' for #<Puppet::Pops::Evaluator::DeferredValue:0x00007ff6913f7908 This occurred because the transaction's `resolved_resolve` assumed the parameter's value was single-valued. As a result, the deferred value was never resolved before calling the type's `validate` method. This updates the transaction to support multi-valued parameters. All deferred values will be resolved before the type's `validate` method is called. Fixes puppetlabs#9438
- Loading branch information
1 parent
1fba250
commit 351db42
Showing
3 changed files
with
33 additions
and
7 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