CLI: cloud-init modules -h documents unsupported --mode init
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Low
|
Chad Smith |
Bug Description
sudo python3 -m cloudinit.cmd.main modules -h
[sudo] password for csmith:
usage: /home/csmith/
[-h] [--mode {init,config,
optional arguments:
-h, --help show this help message and exit
--mode {init,config,
csmith@
Traceback (most recent call last):
File "/usr/lib/
"__main__", mod_spec)
File "/usr/lib/
exec(code, run_globals)
File "/home/
main(sys.argv)
File "/home/
get_
File "/home/
ret = func(*args, **kwargs)
File "/home/
v1[
KeyError: 'modules-init'
We need to limit options to those listed in
cloudinit.cmd.main line 606:
modes = ('init', 'init-local', 'modules-config', 'modules-final')
Related branches
- Server Team CI bot: Approve (continuous-integration)
- Scott Moser: Pending requested
-
Diff: 267 lines (+182/-7)5 files modifiedChangeLog (+85/-0)
cloudinit/cmd/main.py (+12/-6)
cloudinit/version.py (+1/-1)
debian/changelog (+9/-0)
tests/unittests/test_cli.py (+75/-0)
- Server Team CI bot: Approve (continuous-integration)
- Chad Smith: Abstain
- Scott Moser: Approve
-
Diff: 144 lines (+87/-6)2 files modifiedcloudinit/cmd/main.py (+12/-6)
tests/unittests/test_cli.py (+75/-0)
summary: |
- cloud-init modules -h documents unsupported --mode init + CLI: cloud-init modules -h documents unsupported --mode init- |
summary: |
- CLI: cloud-init modules -h documents unsupported --mode init- + CLI: cloud-init modules -h documents unsupported --mode init |
Changed in cloud-init: | |
status: | Triaged → In Progress |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
This bug is believed to be fixed in cloud-init in 18.1. If this is still a problem for you, please make a comment and set the state back to New
Thank you.