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

(MODULES-2245) Fixes issue with assumption of strings #122

Merged
merged 1 commit into from Jul 16, 2015
Merged

(MODULES-2245) Fixes issue with assumption of strings #122

merged 1 commit into from Jul 16, 2015

Conversation

cyberious
Copy link
Contributor

  • Puppet < 4 casts numbers to string, now they remain numeric
    this is to handle that case for next release of Puppet Enterprise

@@ -36,7 +36,9 @@
){
sqlserver_validate_instance_name($instance)
validate_re($config_name,'^\w+')
validate_re($value,'^\d+$', "Value for ${config_name}, for instance ${instance}, must be a integer value, you provided ${value}")
if !is_integer($value) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validate_re always requires a string, so instead we are now using the is_integer method from stdlib and validating this way to avoid casting it to a string just to check if it is an integer

- Puppet < 4 casts numbers to string, now they remain numeric
  this is to hand that case for next release of Puppet Enterprise
@ferventcoder
Copy link
Contributor

Minor nit with commit - handle that case not hand that case

@ferventcoder ferventcoder changed the title (MODULES-2245) Fixes issue with assumption of strings - Puppet < 4 casts numbers to string, now they remain numeric this is to hand that case for next release of Puppet Enterprise (MODULES-2245) Fixes issue with assumption of strings Jul 16, 2015
@ferventcoder
Copy link
Contributor

Second nit with commit - need an empty line between summary and message.

@cyberious
Copy link
Contributor Author

fixed commit messages

@ferventcoder
Copy link
Contributor

please push :)

@ferventcoder
Copy link
Contributor

We can't even pass lint for our licensing!!

Warning: License identifier PuppetLabs-Enterprise is not in the SPDX list: http://spdx.org/licenses/

@ferventcoder
Copy link
Contributor

We need to add the lint bits in there. Perhaps as another issue .

ferventcoder added a commit that referenced this pull request Jul 16, 2015
(MODULES-2245) Fixes issue with assumption of strings
@ferventcoder ferventcoder merged commit bb8f571 into puppetlabs:master Jul 16, 2015
@ferventcoder
Copy link
Contributor

Darn it, meant to fix up the commit message prior to that merge.

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.

None yet

2 participants