Jira (PUP-4626) Puppet should exit when comparing Number == String

2017-05-18 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4626 
 
 
 
  Puppet should exit when comparing Number == String  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4626) Puppet should exit when comparing Number == String

2017-05-15 Thread Josh Cooper (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Josh Cooper commented on  PUP-4626 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet should exit when comparing Number == String  
 
 
 
 
 
 
 
 
 
 
I also recommend using the --parser future flag in the 3.x series to test what will happen when moving to 4.x. Also see the catalog preview tool for diffing catalogs (when compiled under 3.x vs 4.x compilers). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4626) Puppet should exit when comparing Number == String

2017-05-15 Thread Scott Garman (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott Garman updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4626 
 
 
 
  Puppet should exit when comparing Number == String  
 
 
 
 
 
 
 
 
 

Change By:
 
 Scott Garman 
 
 
 

Labels:
 
 triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4626) Puppet should exit when comparing Number == String

2017-05-15 Thread Scott Garman (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Scott Garman commented on  PUP-4626 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: Puppet should exit when comparing Number == String  
 
 
 
 
 
 
 
 
 
 
Thank you for reporting this issue. However, we believe this issue only affects a version of Puppet (3.7.5) that has reached its end of life or is no longer supported. 
For more info on getting the current version of Puppet Agent, see https://docs.puppet.com/puppet/latest/install_pre.html. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-4626) Puppet should exit when comparing Number == String

2015-05-18 Thread c sights (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 c sights created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-4626 
 
 
 
  Puppet should exit when comparing Number == String  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 3.7.5 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Created:
 

 2015/05/18 11:45 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 c sights 
 
 
 
 
 
 
 
 
 
 
Recently (3.7.4 or 3.7.5) puppet stopped converting strings to numbers when comparing them with >,<,>=,<=, and == (possibly others). 
For all but == Puppet gives a warning that a String is not comparable to a Number. 
Puppet should do this for == also because otherwise comparisons such as: lsbmajdistrelease = "7" if ($::lsbmajdistrelease == 7) {} silently change their truth value from True to False. 
This can cause all sorts fo breakage! 
It would be better to abort compilation with a message and have the user explicitly convert from String to Number (or visa versa). 
Thanks! Chad. 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment