Merge ~harlowja/cloud-init:newer-configobj into cloud-init:master
Proposed by
Joshua Harlow
on 2016-08-01
| Status: | Merged |
|---|---|
| Merged at revision: | 80db6eb9d697c21bfab85ab9a0dd5aceee571883 |
| Proposed branch: | ~harlowja/cloud-init:newer-configobj |
| Merge into: | cloud-init:master |
| Diff against target: |
90 lines (+26/-15) 3 files modified
cloudinit/config/cc_mcollective.py (+24/-14) requirements.txt (+1/-1) tests/unittests/test_handler/test_handler_mcollective.py (+1/-0) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| cloud-init commiters | 2016-08-01 | Pending | |
|
Review via email:
|
|||
To post a comment you must log in.
| Scott Moser (smoser) wrote : | # |
| Joshua Harlow (harlowja) wrote : | # |
Sure.
| Scott Moser (smoser) wrote : | # |
This is failing tox for me in the mcollective tests.
| Joshua Harlow (harlowja) wrote : | # |
Shouldn't be a problem anymore.


if we declare this as minimum version, i think there is some imrpvoement to ConfigObj usage in config/ cc_mcollective. py
cloudinit/
we had to do this:
mcollective_ config = ConfigObj( server_ cfg, file_error=True)
LOG.debug( "Did not find file %s", server_cfg)
mcollective_ config = ConfigObj()
try:
existed = True
except IOError:
existed = False
it'd be nicer if we had use caught the error with util.load_file and then done ConfigObj with the contents. but an older version of ConfigObj did not support that (i think ancient version, but i wasn't sure what versions were in what distro).
could you make that change also ?