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

Fix "undefined method `gsub' for nil:NilClass" when changing existing rule UID from absent to any present #1010

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions lib/puppet/type/firewall.rb
Expand Up @@ -1366,6 +1366,8 @@ def should_to_s(value)
statement.
PUPPETCODE
def insync?(is)
return false unless is

require 'etc'

# The following code allow us to take into consideration unix mappings
Expand Down Expand Up @@ -1413,6 +1415,8 @@ def insync?(is)
statement.
PUPPETCODE
def insync?(is)
return false unless is

require 'etc'

# The following code allow us to take into consideration unix mappings
Expand Down