Merge lp:~gfidente/cloud-init/try_fqdn_from_hosts into lp:~cloud-init-dev/cloud-init/trunk
| Status: | Rejected |
|---|---|
| Rejected by: | Scott Moser on 2017-06-06 |
| Proposed branch: | lp:~gfidente/cloud-init/try_fqdn_from_hosts |
| Merge into: | lp:~cloud-init-dev/cloud-init/trunk |
| Diff against target: |
139 lines (+96/-5) 2 files modified
cloudinit/util.py (+9/-5) tests/unittests/test_util.py (+87/-0) |
| To merge this branch: | bzr merge lp:~gfidente/cloud-init/try_fqdn_from_hosts |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2016-05-13 | Pending | |
|
Review via email:
|
|||
Description of the Change
In util.py , get_hostname_fqdn tries cloud.get_
This change is meant to make it try get_fqdn_from_hosts if fqdn does not contain any dot.
| Joshua Harlow (harlowja) wrote : | # |
| Giulio Fidente (gfidente) wrote : | # |
Yes absolutely, thanks for checking this out. There wasn't any for the hostname functions from util.py so I will be adding a bunch.
- 1220. By Giulio Fidente on 2016-05-13
-
Adds unit tests for util.py
This adds seven new unit tests are meant to cover get_hostname_fqdn() and
get_fqdn_from_hosts( ) from util.py - 1221. By Giulio Fidente on 2016-05-13
-
Fix test_from_cloud()
The FakeCloudWithDomain provider was incorrectly returning the fqdn
when called with fqdn=False
| Giulio Fidente (gfidente) wrote : | # |
Do you think it would be useful to add the unit tests first, without any additional code change to diminish the code changes related to the new logic into a different proposal?
| Giulio Fidente (gfidente) wrote : | # |
hi, thanks again for reviewing this, will do!
- 1222. By Giulio Fidente on 2016-05-18
-
Ensure temporary 'hosts' file used for testing is deleted via addCleanup
While tearDown is not executed in case of errors raised during the setUp
phase while addCleanup is; this change updates test_util.py so that the
temporary 'hosts' file created to run some unit tests is deleted in
addCleanup instead of tearDown.
would sure use this fix O_O. The fix LGTM
| Scott Moser (smoser) wrote : | # |
Hello,
Thank you for taking the time to contribute to cloud-init. Cloud-init has moved its revision control system to git. As a result, we are marking all bzr merge proposals as 'rejected'. If you would like to re-submit this proposal for review, please do so by following the current HACKING documentation at http://
Please do re-submit.
Sorry for lost time and unresponsiveness.
Scott
Unmerged revisions
- 1222. By Giulio Fidente on 2016-05-18
-
Ensure temporary 'hosts' file used for testing is deleted via addCleanup
While tearDown is not executed in case of errors raised during the setUp
phase while addCleanup is; this change updates test_util.py so that the
temporary 'hosts' file created to run some unit tests is deleted in
addCleanup instead of tearDown. - 1221. By Giulio Fidente on 2016-05-13
-
Fix test_from_cloud()
The FakeCloudWithDomain provider was incorrectly returning the fqdn
when called with fqdn=False - 1220. By Giulio Fidente on 2016-05-13
-
Adds unit tests for util.py
This adds seven new unit tests are meant to cover get_hostname_fqdn() and
get_fqdn_from_hosts( ) from util.py - 1219. By Giulio Fidente on 2016-05-13
-
Ensure fqdn is not left to None if get_fqdn_from_hosts returns None
- 1218. By Giulio Fidente on 2016-05-13
-
Try get_fqdn_from_hosts if get_hostname(
fqdn=True) is unable to find one


Anyway to add some unittests for this?