Skip to content

Commit

Permalink
If the zone is empty then remove the attribute.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Nov 24, 2017
1 parent 2b964df commit eb4040f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/network/src/modules/NetworkInterfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -958,6 +958,7 @@ def Write(devregex)
# TODO : delete PREFIXLEN from config file
end
end
devmap["ZONE"] = nil if devmap["ZONE"] && devmap["ZONE"].empty?
# write all keys to config
Builtins.maplist(
Convert.convert(
Expand Down

0 comments on commit eb4040f

Please sign in to comment.