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

Comparison of: String >= Integer, is not possible #155

Merged
merged 2 commits into from
Feb 20, 2016
Merged

Comparison of: String >= Integer, is not possible #155

merged 2 commits into from
Feb 20, 2016

Conversation

wazoo
Copy link
Contributor

@wazoo wazoo commented Feb 18, 2016

Current version casues this error when using any of the wrapper classes for records:

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Comparison of: String >= Integer, is not possible. Caused by 'A String is not comparable to a non String'. at /etc/puppetlabs/code/environments/production/modules/dns/manifests/record.pp:24:34 at /etc/puppetlabs/code/environments/production/modules/dns/manifests/record/cname.pp:19 on node

This error is caused by future parser not liking the comparison of integer and string, stole a really simple fix from: voxpupuli/puppet-nginx#684

Also of note I couldn't get the tests to run even on the master branch, gave me a "NameError: uninitialized constant Syck" error, if you know how to fix that I will run them. Tested with a clean gemset on Ruby 2.2.4.

@solarkennedy
Copy link
Collaborator

Travis ran the tests ok. I'm not sure what that error might be.

I you run the future parser in production with this module and want to ensure continued correctness, please feel free to make another PR enabling the future parser in the travis matrix to potentially catch other bugs.

solarkennedy added a commit that referenced this pull request Feb 20, 2016
Comparison of: String >= Integer, is not possible
@solarkennedy solarkennedy merged commit 21bea78 into ajjahn:master Feb 20, 2016
@wazoo wazoo deleted the ttl-fix branch May 19, 2016 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants