diff options
author | Tyler Fitch <tfitch@getchef.com> | 2015-10-28 07:40:48 -0700 |
---|---|---|
committer | Kartik Null Cating-Subramanian <ksubramanian@chef.io> | 2015-10-28 16:26:23 -0400 |
commit | 1b6237afc672615e8a831b9513258744d23ff9bb (patch) | |
tree | b2542a1d50441c5cbea0380d5ead0d35ff40b81b /lib/chef/knife | |
parent | 255e6bb153e159805562096f8bf5fe8777ab7e26 (diff) | |
download | chef-1b6237afc672615e8a831b9513258744d23ff9bb.tar.gz |
Update knife bootstrap command to honor --no-color flag in chef-client run that is part of the bootstrap process.
Diffstat (limited to 'lib/chef/knife')
-rw-r--r-- | lib/chef/knife/core/bootstrap_context.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/knife/core/bootstrap_context.rb b/lib/chef/knife/core/bootstrap_context.rb index 8613a50cb4..fca3b0a90e 100644 --- a/lib/chef/knife/core/bootstrap_context.rb +++ b/lib/chef/knife/core/bootstrap_context.rb @@ -129,6 +129,7 @@ CONFIG s = "#{client_path} -j /etc/chef/first-boot.json" s << ' -l debug' if @config[:verbosity] and @config[:verbosity] >= 2 s << " -E #{bootstrap_environment}" unless bootstrap_environment.nil? + s << " --no-color" unless @config[:color] s end |