Skip to content

Commit 487bc6c

Browse files
committed
Merge pull request #140 from rski/redhat_issue_115
Guard against :absent provider.options in redhat (issue 115)
2 parents 1be5bcd + ad57f45 commit 487bc6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/puppet/provider/network_config/redhat.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,9 @@ def self.format_file(filename, providers)
180180
provider = providers[0]
181181
props = {}
182182

183-
# Map everything to a flat hash
184-
props = (provider.options || {})
183+
props = provider.options if provider.options && provider.options != :absent
185184

185+
# Map everything to a flat hash
186186
NAME_MAPPINGS.keys.each do |type_name|
187187
if (val = provider.send(type_name))
188188
props[type_name] = val

0 commit comments

Comments
 (0)