Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixup $order parameter verification #277

Merged
merged 1 commit into from
Mar 2, 2015
Merged

Fixup $order parameter verification #277

merged 1 commit into from
Mar 2, 2015

Conversation

buzzdeee
Copy link
Contributor

@buzzdeee buzzdeee commented Mar 1, 2015

When testing the order parameter on sanity, make sure that
pattern matching is only exercised on strings. Integers
don't like that.

Without the patch, and integer passed, you end up with below error and aborted catalog like this:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Left match operand must result in a String value. Got an Integer. at /etc/puppet/environments/production/modules/concat/manifests/fragment.pp:45:11 on node XXX
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

pattern matching is only exercised on strings. Integers
don't like that.
underscorgan pushed a commit that referenced this pull request Mar 2, 2015
@underscorgan underscorgan merged commit 30fbfe1 into puppetlabs:master Mar 2, 2015
@underscorgan
Copy link
Contributor

Good catch, thanks @buzzdeee

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants