Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Knife Bootstrap: Passing config_log_level and config_log_location from config.rb #5502

Merged
merged 3 commits into from
Nov 23, 2016

Conversation

dheerajd-msys
Copy link
Contributor

@dheerajd-msys dheerajd-msys commented Nov 1, 2016

Description

Passing config_log_level and config_log_location from config.rb

Issues Resolved

#1452

Check List

@lamont-granquist lamont-granquist changed the title Passing config_log_level and config_log_location from config.rb Knife Bootstrap: Passing config_log_level and config_log_location from config.rb Nov 1, 2016
@dheerajd-msys dheerajd-msys force-pushed the dheeraj/configurable_log_details branch from 83a5661 to 31a168f Compare November 8, 2016 09:24
@thommay
Copy link
Contributor

thommay commented Nov 8, 2016

@dheerajd-msys you'll need to update the specs that have blown up travis, but otherwise this is good, thank you!

…ed specs failure

Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
@dheerajd-msys dheerajd-msys force-pushed the dheeraj/configurable_log_details branch from 31a168f to 6949868 Compare November 9, 2016 07:32
@@ -69,7 +69,8 @@ def trusted_certs

def config_content
client_rb = <<-CONFIG
log_location STDOUT
log_level :#{@chef_config[:config_log_level]}
log_location "#{@chef_config[:config_log_location]}"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are two possible issues that may require fix:

  1. What happens if config_log_level and config_log_location are not passed? Are the values of log_level and log_location getting passed in that case?
  2. Is config_log_location STDOUT getting passed successfully?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should make sure we keep the default log location of STDOUT.

Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
@dheerajd-msys dheerajd-msys force-pushed the dheeraj/configurable_log_details branch 2 times, most recently from 1b04c52 to c961abe Compare November 22, 2016 06:26
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
@btm btm merged commit 92041a5 into chef:master Nov 23, 2016
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Jan 25, 2017
@chef chef locked and limited conversation to collaborators Nov 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Type: Enhancement Adds new functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants