summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel DeLeo <dan@opscode.com>2011-04-06 14:43:56 -0700
committerDaniel DeLeo <dan@opscode.com>2011-04-06 14:43:56 -0700
commit073f729991aac0aaa35ea641ee9bf6f723b3e5a5 (patch)
tree960b059f8403e0dfee5267fed8d3521a0e49188b
parentf3bb6ae496479344acfa2bf07fffea679662e9ef (diff)
parentf6137b5f28ba1296c76b3867430357ee2197abf1 (diff)
downloadchef-073f729991aac0aaa35ea641ee9bf6f723b3e5a5.tar.gz
Merge branch 'CHEF-2181'
-rw-r--r--chef/lib/chef/knife.rb2
-rw-r--r--chef/lib/chef/knife/core/ui.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/chef/lib/chef/knife.rb b/chef/lib/chef/knife.rb
index 147fc776a3..83c0a74ab9 100644
--- a/chef/lib/chef/knife.rb
+++ b/chef/lib/chef/knife.rb
@@ -291,7 +291,7 @@ class Chef
self.msg("No knife configuration file found")
end
- config[:color] = config[:color] && !config[:no_color]
+ Chef::Config[:color] = config[:color] && !config[:no_color]
case config[:verbosity]
when 0
diff --git a/chef/lib/chef/knife/core/ui.rb b/chef/lib/chef/knife/core/ui.rb
index a68edcde0c..d402d60f58 100644
--- a/chef/lib/chef/knife/core/ui.rb
+++ b/chef/lib/chef/knife/core/ui.rb
@@ -93,7 +93,7 @@ class Chef
# determined by the value of `config[:color]`. When output is not to a
# terminal, colored output is never used
def color?
- config[:color] && stdout.tty?
+ Chef::Config[:color] && stdout.tty?
end
def ask(*args, &block)