summaryrefslogtreecommitdiff
path: root/lib/chef/knife/yaml_convert.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/knife/yaml_convert.rb')
-rw-r--r--lib/chef/knife/yaml_convert.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/chef/knife/yaml_convert.rb b/lib/chef/knife/yaml_convert.rb
index 0dde67ce0a..6a6e11aeec 100644
--- a/lib/chef/knife/yaml_convert.rb
+++ b/lib/chef/knife/yaml_convert.rb
@@ -81,13 +81,7 @@ class Chef::Knife::YamlConvert < Chef::Knife
ruby_contents << "#{type} \"#{name}\" do"
r.each do |k, v|
- ruby_contents <<
- case v
- when Array
- " #{k} #{v}"
- else
- " #{k} \"#{v}\""
- end
+ ruby_contents << " #{k} #{v.inspect}"
end
ruby_contents << "end\n"
end