HomePhorge

(PUP-2650) Defer deprecation warnings until we can read disable_warnings
1efe27a46e54Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(PUP-2650) Defer deprecation warnings until we can read disable_warnings

The difficulty with using the value of the disable_warnings setting to
adjust deprecation_warnings issued for other configuration settings is
that we need settings to finish initialization first. Otherwise
deprecation_warnings become dependent on the order of setting
initialization. To account for this, I added a deprecated attribute to
base_setting, allowing us to mark any setting as deprecated completely
or allowed_on_commandline. And the code in settings to issue
deprecations now tracks deprecated settings as they are configured, and
then issues the deprecations after the application is initialized.

Details

Provenance
Josh Partlow <joshua.partlow@puppetlabs.com>Authored on
Adrien Thebo <git@somethingsinistral.net>Committed on Jun 5 2014, 2:17 AM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe68f934b1e27: (PUP-2650) Add disable_warnings setting
Branches
Unknown
Tags
Unknown

Event Timeline

Adrien Thebo <git@somethingsinistral.net> committed rPU1efe27a46e54: (PUP-2650) Defer deprecation warnings until we can read disable_warnings (authored by Josh Partlow <joshua.partlow@puppetlabs.com>).Jun 5 2014, 2:17 AM