Skip to content

Commit

Permalink
Merge ac6654f into 85dafc4
Browse files Browse the repository at this point in the history
  • Loading branch information
towo committed Feb 5, 2019
2 parents 85dafc4 + ac6654f commit e10b228
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppet/provider/network_config/interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,9 @@ def self.parse_file(_filename, contents)

# If an iface block for this interface has been seen, the file is
# malformed.
raise_malformed if Instance[name] && Instance[name].family
unless ((family == 'inet' && Instance[name].family == 'inet6') or (family == 'inet6' && Instance[name].family == 'inet'))
raise_malformed if Instance[name] && Instance[name].family
end

status = :iface
current_interface = name
Expand Down

0 comments on commit e10b228

Please sign in to comment.