Merge ~smoser/cloud-init:bug/1742479-no-manual_cache_clean-warning into cloud-init:master
Proposed by
Scott Moser
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chad Smith | ||||
Approved revision: | 5a6ed582ed7577a884a9b628d59fd26f1b1316d1 | ||||
Merge reported by: | Chad Smith | ||||
Merged at revision: | 6299e8d0cc230b0c9b41a69a5963bcd2c252c337 | ||||
Proposed branch: | ~smoser/cloud-init:bug/1742479-no-manual_cache_clean-warning | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
65 lines (+20/-6) 3 files modified
cloudinit/cmd/main.py (+7/-1) cloudinit/util.py (+5/-5) tests/unittests/test_util.py (+8/-0) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Chad Smith | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+335956@code.launchpad.net |
Commit message
Do not log warning on config files that represent None.
This issue was first identified when manual_cache_clean was set, as
ds-identify would write /run/cloud-
# manual_cache_clean
that would generate a warning as cloud-init expected to load a dict.
Any other "empty" config would also log such a warning.
Also fix reading of di_report to allow it to be None, as ds-identify
would write:
di_report:
# manual_cache_clean
which reads as 'di_report: None' rather than di_report: {}.
LP: #1742479
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
PASSED: Continuous integration, rev:73f1dc2b021 7dd967485dbbb46 baf6e489cc769e /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 686/
https:/
Executed test runs:
SUCCESS: Checkout
SUCCESS: Unit & Style Tests
SUCCESS: Ubuntu LTS: Build
SUCCESS: Ubuntu LTS: Integration
SUCCESS: MAAS Compatability Testing
IN_PROGRESS: Declarative: Post Actions
Click here to trigger a rebuild: /jenkins. ubuntu. com/server/ job/cloud- init-ci/ 686/rebuild
https:/