Merge ~smoser/cloud-init:feature/net-convert-work-with-old into cloud-init:master
| Status: | Merged |
|---|---|
| Merged at revision: | 79236a629f1e0e61b260d0cb995b6299a5c7aac1 |
| Proposed branch: | ~smoser/cloud-init:feature/net-convert-work-with-old |
| Merge into: | cloud-init:master |
| Diff against target: |
13 lines (+1/-1) 1 file modified
tools/net-convert.py (+1/-1) |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Ryan Harper | 2017-06-01 | Approve on 2017-06-01 | |
| Chad Smith | Approve on 2017-06-01 | ||
|
Review via email:
|
|||
Commit Message
tools/net-
Older cloud-init versions have a bug in the signature of the
render_
The old had:
render_
The correct is
render_
This just changes our caller to use kwargs style when invoking that
method so that it works with either format.
| Scott Moser (smoser) wrote : | # |
| Chad Smith (chad.smith) wrote : | # |
+1 on explicit kwargs for extensibility of the call for future revs as well as handling the existing param re-ordering difference.
| Ryan Harper (raharper) wrote : | # |
OK, I had to test it myself, but I'm convinced that specifying the name of parameters in kwarg style does indeed do the right thing here.


I found this when wanting to use the trunk's tools/net- convert. py against a dpkg installed version of cloud-init on xenial.