Fix type handling

Both the guts of the PuppetBind::Provider::Nsupdate module and the type method
of the dns_rr(nsupdate) provider produce and expect the type expressed as a
string, but the resource_record(nsupdate) provider's type method produces
symbols. This accidentally worked for a while, then it didn't. Also, in
quoted_type? that's supposed to be an array of strings, not a quoted string.
This commit is contained in:
Nate Riffe 2015-05-21 14:24:35 -05:00
parent 7edd25aac2
commit 7555cdd4e0
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ private
end end
def type def type
resource[:type] resource[:type].to_s
end end
def name def name

View File

@ -71,7 +71,7 @@ module PuppetBind
end end
def quoted_type?(type) def quoted_type?(type)
%(TXT SPF).include?(type) %w(TXT SPF).include?(type)
end end
def maybe_quote(type, datum) def maybe_quote(type, datum)