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

(maint) Remove needless check in setting default #9476

Merged
merged 1 commit into from
Sep 27, 2024

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Sep 6, 2024

This line is not sane for the setting of the log_level default (because specifying --log_level on the command line always takes precedence over what's specified in puppet.conf)

loglevel = %x{ #{puppet_path} config --section agent --log_level notice print log_level }.chomp

It sets log_level to notice, and then return the output of the log_level setting

  loglevel = "notice"

is the same thing with fewer steps

Author: Marty Ewings martyewings@gmail.com
Supersedes PR #8958

@joshcooper joshcooper requested a review from a team as a code owner September 6, 2024 06:32
This line is not sane for the setting of the log_level default

   loglevel = %x{ #{puppet_path} config --section agent --log_level notice print log_level }.chomp

this sets log_level to notice, and then return the output of the log_level setting

      loglevel = "notice"

is the same thing with fewer steps
@joshcooper
Copy link
Contributor Author

See #8958 (comment) for details

@joshcooper joshcooper marked this pull request as draft September 6, 2024 06:41
@joshcooper joshcooper marked this pull request as ready for review September 6, 2024 08:09
@joshcooper joshcooper added the bug Something isn't working label Sep 6, 2024
@joshcooper joshcooper merged commit 1afc8eb into puppetlabs:main Sep 27, 2024
10 checks passed
@joshcooper joshcooper deleted the MartyEwings-patch-1 branch September 27, 2024 05:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants