+ Removed included upstream - pep-594-drop-pipes.patch - cloud-init-fix-python313.patch - cloud-init-dont-assume-ordering-of-ThreadPoolExecutor.patch - cloud-init-direxist.patch - cloud-init-wait-for-net.patch - cloud-init-usr-sudoers.patch - cloud-init-no-nmcfg-needed.patch - cloud-init-keep-flake.patch - cloud-init-lint-fixes.patch - cloud-init-pckg-reboot.patch - cloud-init-ds-deterministic.patch - cloud-init-write-routes.patch - cloud-init-skip-empty-conf.patch + Forward port - cloud-init-no-tempnet-oci.patch - cloud-init-no-openstack-guess.patch - cloud-init-lint-set-interpreter.patch + Add - cloud-init-ssh-usrmerge.patch (bsc#1237764) - cloud-init-lint-set-interpreter.patch - cloud-init-lint-fix.patch - cloud-init-no-single-process.patch - cloud-init-needs-action.patch + Drop hidesensitivedata in 16 & greater + test: pytestify cc_chef tests, add migration test + chef: migrate files in old config directories for backups and cache + fix: correct the path for Chef's backups (#5994) + fix(Azure): don't reraise FileNotFoundError during ephemeral setup (#6113) OBS-URL: https://build.opensuse.org/package/show/Cloud:Tools/cloud-init?expand=0&rev=245
20 lines
641 B
Diff
20 lines
641 B
Diff
--- cloudinit/cmd/main.py.orig
|
|
+++ cloudinit/cmd/main.py
|
|
@@ -1334,8 +1334,14 @@ def all_stages(parser):
|
|
|
|
def sub_main(args):
|
|
|
|
- # Subparsers.required = True and each subparser sets action=(name, functor)
|
|
- (name, functor) = args.action
|
|
+ try:
|
|
+ # Subparsers.required = True
|
|
+ # and each subparser sets action=(name, functor)
|
|
+ (name, functor) = args.action
|
|
+ except AttributeError:
|
|
+ print('No Subcommand specified. Please specify a subcommand '
|
|
+ 'in addition to the option')
|
|
+ sys.exit(1)
|
|
|
|
# Setup basic logging for cloud-init:
|
|
# - for cloud-init stages if --debug
|