Merge lp:~wallyworld/juju-core/log-deprecated-config-warnings into lp:~go-bot/juju-core/trunk
Status: | Merged |
---|---|
Approved by: | Ian Booth |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2161 |
Proposed branch: | lp:~wallyworld/juju-core/log-deprecated-config-warnings |
Merge into: | lp:~go-bot/juju-core/trunk |
Diff against target: |
259 lines (+108/-82) 5 files modified
environs/config.go (+22/-0) environs/config/config.go (+19/-23) environs/config/config_test.go (+0/-59) environs/config_test.go (+61/-0) environs/export_test.go (+6/-0) |
To merge this branch: | bzr merge lp:~wallyworld/juju-core/log-deprecated-config-warnings |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+199597@code.launchpad.net |
Commit message
Fix config depcared attr warnings
Deprecated config warnings are being logged
multiple times. A previous fix moved the entire
deprecated config processing logic so that the
warnings were only logged once. However this broke
upgrades.
This new fix moves the logging of the deprecation
warnings but leaves the processing of the depcated
attributes in the config Validate method so
upgrades continue to work.
Description of the change
Fix config depcared attr warnings
Deprecated config warnings are being logged
multiple times. A previous fix moved the entire
deprecated config processing logic so that the
warnings were only logged once. However this broke
upgrades.
This new fix moves the logging of the deprecation
warnings but leaves the processing of the depcated
attributes in the config Validate method so
upgrades continue to work.
Reviewers: mp+199597_ code.launchpad. net,
Message:
Please take a look.
Description:
Fix config depcared attr warnings
Deprecated config warnings are being logged
multiple times. A previous fix moved the entire
deprecated config processing logic so that the
warnings were only logged once. However this broke
upgrades.
This new fix moves the logging of the deprecation
warnings but leaves the processing of the depcated
attributes in the config Validate method so
upgrades continue to work.
https:/ /code.launchpad .net/~wallyworl d/juju- core/log- deprecated- config- warnings/ +merge/ 199597
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/37720049/
Affected files (+110, -123 lines): config/ config. go config/ config_ test.go config_ test.go export_ test.go
A [revision details]
M environs/config.go
M environs/
M environs/
M environs/
M environs/