Closed traylenator closed 4 years ago
https://github.com/voxpupuli/puppet-firewalld/blob/5df4c2e912b9ddd96f17fbd90b64bef222efc3bd/lib/puppet/type/firewalld_custom_service.rb#L88 looks wrong. That string comparison isn't valid.
2.5.5 :001 > '999' > '1000'
=> true
That's definitely a fix that needs to be made. Not sure if it fixes the stated issue though. Checking
Ah, yep, this is the correct fix. Sorry for letting that slip through!
@alexjfisher Made a suggestion for a small code change and rubocop is whining.
Thanks @alexjfisher @trevor-vaughan all good
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
What behaviour did you expect instead
Used to compile.
Any additional information you'd like to impart
Running a bisect on the firewalld fixture the changes was introduced with:
https://github.com/voxpupuli/puppet-firewalld/commit/a1993badda1663fc859c0ca4a2ec7c049aa76af3