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:
parent
7edd25aac2
commit
7555cdd4e0
@ -34,7 +34,7 @@ private
|
|||||||
end
|
end
|
||||||
|
|
||||||
def type
|
def type
|
||||||
resource[:type]
|
resource[:type].to_s
|
||||||
end
|
end
|
||||||
|
|
||||||
def name
|
def name
|
||||||
|
|||||||
@ -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)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user