diff --git a/lib/puppet/type/powerdns_zone.rb b/lib/puppet/type/powerdns_zone.rb index 31de8f6..27bf1d2 100644 --- a/lib/puppet/type/powerdns_zone.rb +++ b/lib/puppet/type/powerdns_zone.rb @@ -136,11 +136,11 @@ def should_content if r[:rname] == '.' content.push([r[:target_zone], r[:rttl], r[:rclass], r[:rtype], r[:rcontent]].join("\t")) else - content.push([r[:rname] + '.' + r[:target_zone], r[:rttl], r[:rclass], r[:rtype], r[:rcontent]].join("\t")) + content.push([(r[:rname] + '.' + r[:target_zone]).downcase, r[:rttl], r[:rclass], r[:rtype], r[:rcontent]].join("\t")) end # rubocop:enable Style/StringConcatenation end - content.push("$ORIGIN .\n") # add this, since it's always in the output.. + content.push("$ORIGIN .") # add this, since it's always in the output.. content.sort.join("\n") end # rubocop:enable Metrics/AbcSize