Merge ~amzn-cmiller/cloud-init:ec2-metadatasrv-route-eexist into cloud-init:master
Proposed by
Chad
Status: | Work in progress |
---|---|
Proposed branch: | ~amzn-cmiller/cloud-init:ec2-metadatasrv-route-eexist |
Merge into: | cloud-init:master |
Diff against target: |
75 lines (+27/-6) 2 files modified
cloudinit/config/cc_disable_ec2_metadata.py (+9/-5) cloudinit/config/tests/test_disable_ec2_metadata.py (+18/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper | Needs Fixing | ||
Server Team CI bot | continuous-integration | Approve | |
Andrew Jorgensen (community) | Approve | ||
Scott Moser | Approve | ||
Review via email: mp+360082@code.launchpad.net |
Commit message
Allow route already to exist for disable-
Try CHANGE route to metadata service, not just ADD route.
Linux doesn't allow two routes with the same match characteristics.
If an explicit route already exists, then ip-route "add" will fail.
Now, "change" first, and only "add" if it failed.
To post a comment you must log in.
Unmerged commits
- 305804e... by Chad
- 2f26e6e... by Chad
ping?