strip quotes from primitive parameter values
This commit is contained in:
@@ -82,7 +82,7 @@ module Chef::Libraries
|
|||||||
unless kvpair =~ /^(.+?)=(.+)$/
|
unless kvpair =~ /^(.+?)=(.+)$/
|
||||||
raise "Couldn't understand '#{kvpair}' for #{data_type} section of '#{name}' primitive"
|
raise "Couldn't understand '#{kvpair}' for #{data_type} section of '#{name}' primitive"
|
||||||
end
|
end
|
||||||
h[$1] = $2
|
h[$1] = $2.sub(/^"(.*)"$/, "\1")
|
||||||
end
|
end
|
||||||
h
|
h
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user