Skip to content

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

Merged
ferventcoder merged 1 commit intopuppetlabs:masterfrom
cyberious:master
Jul 16, 2015
Merged

(MODULES-2245) Fixes issue with assumption of strings#122
ferventcoder merged 1 commit intopuppetlabs:masterfrom
cyberious:master

Conversation

@cyberious
Copy link
Copy Markdown
Contributor

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

Comment thread manifests/sp_configure.pp
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

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

@cyberious
Copy link
Copy Markdown
Contributor Author

fixed commit messages

@ferventcoder
Copy link
Copy Markdown
Contributor

please push :)

@ferventcoder
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants