Skip to content

Commit

Permalink
Merge pull request #140 from rski/redhat_issue_115
Browse files Browse the repository at this point in the history
Guard against :absent provider.options in redhat (issue 115)
  • Loading branch information
igalic committed Mar 10, 2016
2 parents 1be5bcd + ad57f45 commit 487bc6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet/provider/network_config/redhat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,9 @@ def self.format_file(filename, providers)
provider = providers[0]
props = {}

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

# Map everything to a flat hash
NAME_MAPPINGS.keys.each do |type_name|
if (val = provider.send(type_name))
props[type_name] = val
Expand Down

0 comments on commit 487bc6c

Please sign in to comment.