Merge ~smoser/cloud-init:bug/1764264-schema-runcmd-is-not-unique into cloud-init:master
Proposed by
Scott Moser
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Chad Smith | ||||
Approved revision: | 65ad8752dc214d3d7fba31a7f7a8e7fbcc48118a | ||||
Merge reported by: | Chad Smith | ||||
Merged at revision: | 6811926fdb991ad02ad9c0134c1d4bbe82ef87e1 | ||||
Proposed branch: | ~smoser/cloud-init:bug/1764264-schema-runcmd-is-not-unique | ||||
Merge into: | cloud-init:master | ||||
Diff against target: |
177 lines (+82/-7) 7 files modified
cloudinit/config/cc_bootcmd.py (+0/-1) cloudinit/config/cc_runcmd.py (+0/-1) cloudinit/config/cc_snap.py (+0/-1) cloudinit/config/cc_ubuntu_advantage.py (+0/-1) cloudinit/config/tests/test_snap.py (+36/-0) tests/unittests/test_handler/test_handler_bootcmd.py (+23/-1) tests/unittests/test_handler/test_handler_runcmd.py (+23/-2) |
||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Server Team CI bot | continuous-integration | Approve | |
Chad Smith | Approve | ||
Review via email:
|
Commit message
Schema: do not warn on duplicate items in commands.
runcmd, bootcmd, snap/commands, ubuntu-
log warning (and fail if strict) on duplicate values in the commands.
But those should be allowed. Example, it is perfectly valid to do:
runcmd: ['sleep 1', 'sleep 1']
LP: #1764264
Description of the change
see commit message
To post a comment you must log in.
There was an error fetching revisions from git servers. Please try again in a few minutes. If the problem persists, contact Launchpad support.
This is good, better to be flexible in the event users need to run the same command multiple times. As you mentioned in irc apt-get update may frequently show up multiple times.