Merge lp:~jtv/maas/report_missing_config_dir into lp:~maas-committers/maas/trunk
Status: | Merged |
---|---|
Approved by: | Jeroen T. Vermeulen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 1834 |
Proposed branch: | lp:~jtv/maas/report_missing_config_dir |
Merge into: | lp:~maas-committers/maas/trunk |
Diff against target: |
112 lines (+52/-11) 2 files modified
src/provisioningserver/dns/config.py (+22/-11) src/provisioningserver/dns/tests/test_config.py (+30/-0) |
To merge this branch: | bzr merge lp:~jtv/maas/report_missing_config_dir |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Raphaël Badin (community) | Approve | ||
Review via email: mp+202443@code.launchpad.net |
Commit message
New helper for writing DNS config and zone files: report_
Description of the change
This is another small step towards making small amounts of duplication of the write_config and inner_write_config methods painless. The next step is to inline the two inner_write_config implementations into small, slightly different write_config implementations — one using atomic_write and the other incremental_write to create its output file. This is a subtlety that came up late (with unexpected filesystem and BIND complications) in the development of the original code, hence the awkwardness.
With that bit of duplication-
Jeroen