summaryrefslogtreecommitdiff
path: root/lib/chef/shell
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/shell')
-rw-r--r--lib/chef/shell/ext.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/shell/ext.rb b/lib/chef/shell/ext.rb
index 17525d777c..ae013de76b 100644
--- a/lib/chef/shell/ext.rb
+++ b/lib/chef/shell/ext.rb
@@ -331,7 +331,7 @@ E
edited_data = Tempfile.open([filename, ".js"]) do |tempfile|
tempfile.sync = true
tempfile.puts Chef::JSONCompat.to_json(object)
- system("#{Shell.editor.to_s} #{tempfile.path}")
+ system("#{Shell.editor} #{tempfile.path}")
tempfile.rewind
tempfile.read
end