You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~/ $ slcli virtual capacity
Usage: slcli virtual capacity [OPTIONS] COMMAND [ARGS]...
Base command for all capacity related concerns
Options:
-h, --help Show this message and exit.
Commands:
create Create a Reserved Capacity instance.
create-guest Allows for creating a virtual guest in a reserved capacity.
create-options List options for creating Reserved Capacity
detail Reserved Capacity Group details.
list List Reserved Capacity groups.
~/ $ slcli virtual capacity abcd
An unexpected error has occured:
Traceback (most recent call last):
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\SoftLayer\CLI\core.py", line 182, in main
cli.main(**kwargs)
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1053, in main
rv = self.invoke(ctx)
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1653, in invoke
cmd_name, cmd, args = self.resolve_command(ctx, args)
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\click\core.py", line 1700, in resolve_command
cmd = self.get_command(ctx, cmd_name)
File "\AppData\Local\Programs\Python\Python310\lib\site-packages\SoftLayer\CLI\virt\capacity\__init__.py", line 40, in get_command
module = importlib.import_module(path)
File "\AppData\Local\Programs\Python\Python310\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'SoftLayer.CLI.virt.capacity.abcd'
Feel free to report this error as it is likely a bug:
https://github.com/softlayer/softlayer-python/issues
The following snippet should be able to reproduce the error
It should show a similar error when executing a command that doesn't exist
~/ $ slcli virtual abc
Usage: slcli virtual [OPTIONS] COMMAND [ARGS] ...
Try 'slcli virtual --help' for help.
Error: No such command 'abc'.
This error occurs with all subcommands
List of the subcommands
edsonarios
changed the title
Error not handled when executing a command that does not exist in a subcommand
Unhandled error running a subcommand in slcli
Sep 8, 2022
It should show a similar error when executing a command that doesn't exist
This error occurs with all subcommands
List of the subcommands
The text was updated successfully, but these errors were encountered: