Skip to content

Commit 347aeb4

Browse files
Tu2607Ciprian Badescu
authored andcommitted
(maint) Fix a bug with the logger in clean.rb
This bug arose from adding the option to use debug logging to the puppetserver-ca gem. The error happened when the test for Puppet's 'clean' face in 6.x is ran. The reason behind the error is because we did not have a 'debug' option in our 'LoggerIO' class in 'clean' face. Thus, the solution to the bug is to include the 'debug' option in our logger by adding a debug function in the LoggerIO class. Furthermore, we decided to include the 'warn' option for the logger similar to Puppet's 'clean' face in 7.x so that it's less of a hassle when merging and having a uniform code base.
1 parent 985d18c commit 347aeb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/face/node/clean.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def debug(message)
5252
end
5353

5454
def warn(message)
55-
Puppet.warning(message)
55+
Puppet.warning(message) unless message =~ /cadir is currently configured to be inside/
5656
end
5757

5858
def err(message)

0 commit comments

Comments
 (0)