Skip to content

Commit

Permalink
fix #509 Allow dots in data structures of object attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lbetz committed Jan 2, 2019
1 parent 54ac9ff commit 61046cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/puppet_x/icinga2/utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ def self.process_hash(attrs, indent=2, level=3, prefix=' '*indent)
result += "%s%s = %s\n" % [ prefix, attribute_types(attr), parse(value) ] if value != :nil
#result += "%s%s = %s\n" % [ prefix, attr, parse(value) ] if value != :nil
else
result += "%s[\"%s\"] = %s\n" % [ prefix, attribute_types(attr), parse(value) ] if value != :nil
#result += "%s[\"%s\"] = %s\n" % [ prefix, attr, parse(value) ] if value != :nil
#result += "%s[\"%s\"] = %s\n" % [ prefix, attribute_types(attr), parse(value) ] if value != :nil
result += "%s[\"%s\"] = %s\n" % [ prefix, attr, parse(value) ] if value != :nil
end
else
result += "%s%s = %s\n" % [ prefix, attr, parse(value) ] if value != :nil
Expand Down

0 comments on commit 61046cd

Please sign in to comment.