[Python-modules-team] Bug#965053: az consumption usage list: TypeError: list() missing 1 required positional argument: 'scope'
Jakub Wilk
jwilk at jwilk.net
Wed Jul 15 08:56:16 BST 2020
Package: azure-cli
Version: 2.7.0-1
"az consumption usage list" doesn't work at all:
$ az consumption usage list
Command group 'consumption' is in preview. It may be changed/removed in a future release.
The command failed with an unexpected error. Here is the traceback:
list() missing 1 required positional argument: 'scope'
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/knack/cli.py", line 215, in invoke
cmd_result = self.invocation.execute(args)
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 654, in execute
raise ex
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 718, in _run_jobs_serially
results.append(self._run_job(expanded_arg, cmd_copy))
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 709, in _run_job
cmd_copy.exception_handler(ex)
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/consumption/_exception_handler.py", line 16, in consumption_exception_handler
reraise(*sys.exc_info())
File "/usr/lib/python3/dist-packages/six.py", line 703, in reraise
raise value
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 688, in _run_job
result = cmd_copy(params)
File "/usr/lib/python3/dist-packages/azure/cli/core/commands/__init__.py", line 325, in __call__
return self.handler(*args, **kwargs)
File "/usr/lib/python3/dist-packages/azure/cli/core/__init__.py", line 545, in default_command_handler
return op(**command_args)
File "/usr/lib/python3/dist-packages/azure/cli/command_modules/consumption/custom.py", line 33, in cli_consumption_list_usage
return client.list(expand=expand, filter=filter_expression)
TypeError: list() missing 1 required positional argument: 'scope'
-- System Information:
Architecture: i386
Versions of packages azure-cli depends on:
ii python3 3.8.2-3
ii python3-azure-cli 2.7.0-1
--
Jakub Wilk
More information about the Python-modules-team
mailing list