Merge ~smoser/cloud-init:feature/freebsd-variant into cloud-init:master
| Status: | Merged |
|---|---|
| Approved by: | Chad Smith on 2017-06-15 |
| Approved revision: | c6af5b9a1648c208c82b3a2704668391abadd8ab |
| Merged at revision: | ecb408afa1104fe49ce6eb1dc5708be56abd5cb2 |
| Proposed branch: | ~smoser/cloud-init:feature/freebsd-variant |
| Merge into: | cloud-init:master |
| Diff against target: |
273 lines (+40/-49) 8 files modified
cloudinit/config/cc_growpart.py (+1/-1) cloudinit/config/cc_power_state_change.py (+1/-1) cloudinit/sources/DataSourceAzure.py (+1/-1) cloudinit/util.py (+19/-27) config/cloud.cfg.tmpl (+9/-11) tests/unittests/test_handler/test_handler_ntp.py (+1/-1) tests/unittests/test_util.py (+6/-3) tools/build-on-freebsd (+2/-4) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Server Team CI bot | continuous-integration | Approve on 2017-06-15 | |
| cloud-init commiters | 2017-06-15 | Pending | |
|
Review via email:
|
|||
Commit Message
freebsd: Make freebsd a variant, fix unittests and tools/build-
- Simplify the logic of 'variant' in util.system_info
much of the data from
https:/
- fix get_resource_
an Azure resource disk.
- fix tools/build-
bash which is a dependency for tests.
- update a fiew places that were checking for freebsd but not using
the util.is_FreeBSD()
| Scott Moser (smoser) wrote : | # |
FAILED: Continuous integration, rev:2151902fa7a
https:/
Executed test runs:
FAILURE: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
PASSED: Continuous integration, rev:c6af5b9a164
https:/
Executed test runs:
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
SUCCESS: https:/
Click here to trigger a rebuild:
https:/
| Chad Smith (chad.smith) wrote : | # |
Looks pretty good, I'd like to see other unit tests specifically looking at return vals from util.system_info() but that can come in a later branch. Minor nits but code looks good.
I have no bsd system available otherwise I'd check it out with a couple of runs.
| Scott Moser (smoser) wrote : | # |
actually, on further thought, lets leve suse out right now.
there is a 'sles' distro (cloudinit/
https:/
we would see 'suse' as the dist.
not sure what the right change is.
i didn't *change* any behavior here i dont think.
so i'd rather leave it is and just enable the freebsd.
and we can/should fix suse/sles later.
| Chad Smith (chad.smith) wrote : | # |
+1 on that suggestion


this replaces some of the changes from /code.launchpad .net/~redriver/ cloud-init/ +git/cloud- init/+merge/ 325718
https:/