summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian C. Dunn <jdunn@getchef.com>2014-05-03 01:11:38 -0400
committerJulian C. Dunn <jdunn@getchef.com>2014-05-03 01:11:38 -0400
commit0e81eb05efb8de0e6cc51364f2f25e2a0f9cd784 (patch)
tree9056f037fc9d993aba239d9ea121d659fd5f31a2
parentfdca4b76efc9ce258ef59918caf7dade49a1ccef (diff)
downloadchef-0e81eb05efb8de0e6cc51364f2f25e2a0f9cd784.tar.gz
[CHEF-4224] tracing? throws an exception when chef-shell is first started
-rw-r--r--lib/chef/shell.rb1
-rw-r--r--spec/unit/shell_spec.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/chef/shell.rb b/lib/chef/shell.rb
index 0788962e62..1519c47d88 100644
--- a/lib/chef/shell.rb
+++ b/lib/chef/shell.rb
@@ -111,6 +111,7 @@ module Shell
conf.prompt_i = "chef#{leader(m)} > "
conf.prompt_n = "chef#{leader(m)} ?> "
conf.prompt_s = "chef#{leader(m)}%l> "
+ conf.use_tracer = false
end
end
diff --git a/spec/unit/shell_spec.rb b/spec/unit/shell_spec.rb
index cce743873f..bf638e1c3a 100644
--- a/spec/unit/shell_spec.rb
+++ b/spec/unit/shell_spec.rb
@@ -72,7 +72,7 @@ describe Shell do
conf.prompt_i.should == "chef > "
conf.prompt_n.should == "chef ?> "
conf.prompt_s.should == "chef%l> "
-
+ conf.use_tracer.should == false
end
it "has a prompt like ``chef:recipe > '' in recipe context" do