diff -r 47002a1da407 -r 0b76fc564cd2 components/puppet/files/solaris/lib/puppet/type/dns.rb --- a/components/puppet/files/solaris/lib/puppet/type/dns.rb Thu Aug 08 10:33:46 2013 -0700 +++ b/components/puppet/files/solaris/lib/puppet/type/dns.rb Mon Aug 12 11:30:04 2013 -0700 @@ -44,9 +44,13 @@ 3 IP addresses may be specified. Specify multiple IP addresses as an array" - # ensure should remains an array + # ensure should remains an array as long as there's more than 1 entry def should - @should + if @should.length == 1 + @should.to_s + else + @should + end end def insync?(is) @@ -78,9 +82,13 @@ entries may be specified. Specify multiple search entries as an array." - # ensure should remains an array + # ensure should remains an array as long as there's more than 1 entry def should - @should + if @should.length == 1 + @should.to_s + else + @should + end end def insync?(is) @@ -99,9 +107,13 @@ be specified in IP 'slash notation'. A maximum of 10 sortlist entries may be specified. Specify multiple entries as an array." - # ensure should remains an array + # ensure should remains an array as long as there's more than 1 entry def should - @should + if @should.length == 1 + @should.to_s + else + @should + end end def insync?(is) @@ -129,9 +141,13 @@ no-check-names, inet6. For values with 'n', specify 'n' as an integer. Specify multiple options as an array." - # ensure should remains an array + # ensure should remains an array as long as there's more than 1 entry def should - @should + if @should.length == 1 + @should.to_s + else + @should + end end def insync?(is)