Merge ~smoser/cloud-init:bug/1675185-no-apt-on-snappy into cloud-init:master
Proposed by
Scott Moser
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | e80dbb80987ba44be2899e34fbbbf7d48389b6b5 | ||||
Proposed branch: | ~smoser/cloud-init:bug/1675185-no-apt-on-snappy | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
37 lines (+17/-3) 1 file modified
cloudinit/config/cc_apt_configure.py (+17/-3) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Ryan Harper | Approve | ||
Server Team CI bot | continuous-integration | Approve | |
Review via email: mp+321218@code.launchpad.net |
Commit message
apt_configure: run only when needed.
Do not bother configuring apt if no 'apt' config is provided and either:
a.) running on snappy
b.) there is no 'apt' command (possibly a different distro)
If apt config is provided in either of the above situations, then config
will continue.
LP: #1675185
To post a comment you must log in.
need some tests, and maybe some test case cleanups.