diff options
author | Chad Smith <chad.smith@canonical.com> | 2017-12-14 22:06:29 -0700 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2017-12-14 22:06:29 -0700 |
commit | 4089e20c0a20bc2ad5c21b106687c4f3faf84b4b (patch) | |
tree | ef2aef7bf8b3ba52339befd1e61cc1a917ded53c /cloudinit/config/cc_landscape.py | |
parent | c87588bf1e118095445ed0713f60866592b36ca1 (diff) | |
download | vyos-cloud-init-4089e20c0a20bc2ad5c21b106687c4f3faf84b4b.tar.gz vyos-cloud-init-4089e20c0a20bc2ad5c21b106687c4f3faf84b4b.zip |
cli: Fix error in cloud-init modules --mode=init.
The cli help docs and argument parser allow the 'init' mode value
which caused a traceback.
Fix the cli to support 'init', 'config' and 'final' modes for the
cloud-init modules subcommand.
Add a check in the cli to raise a ValueError if a new
subcommand ends up allowing an unsupported/unimplemented modes.
Drive by unit test additions for a bit better coverage of error
handling.
LP: #1736600
Diffstat (limited to 'cloudinit/config/cc_landscape.py')
0 files changed, 0 insertions, 0 deletions