sous-chefs/logrotate

logrotate constant initialized warning

Closed this issue · 1 comments

I've been running into a bunch of warnings when testing cookbooks that depend on logrotate. I keep getting:

logrotate_config.rb:2: warning: already initialized constant CookbookLogrotate::DIRECTIVES
logrotate_config.rb:2: warning: previous definition of DIRECTIVES was here
logrotate_config.rb:11: warning: already initialized constant CookbookLogrotate::VALUES
logrotate/libraries/logrotate_config.rb:11: warning: previous definition of VALUES was here
logrotate/libraries/logrotate_config.rb:18: warning: previous definition of SCRIPTS was here
logrotate/libraries/logrotate_config.rb:20: warning: already initialized constant CookbookLogrotate::DIRECTIVES_AND_VALUES
logrotate/libraries/logrotate_config.rb:20: warning: previous definition of DIRECTIVES_AND_VALUES was here

This should be fixed by: e2050a2