Skip to content

Conversation

@kwilczynski
Copy link
Contributor

Commit d45d0db ("Format error as json when using --json") added a new positional argument called use_json to the dashboard_api_fetch() method while fixing something else.

As part of the change, most of the callers of the dashboard_api_fetch(), such as the dashboard_fetch_tree_list() helper, were updated to correctly pass the new argument around.

However, the cmd_list_trees() was not updated to pass the new argument correctly to the aforementioned helper function, which it uses internally.

As such, when using kci-dev with the "results trees" subcommand, this results in a TypeError as follows:

TypeError: dashboard_fetch_tree_list() missing 1 required positional argument: 'use_json'

Thus, add the missing argument when invoking dashboard_fetch_tree_list() to fix the subcommand invocation error.

Commit d45d0db ("Format error as json when using --json") added a new
positional argument called "use_json" to the dashboard_api_fetch()
method while fixing something else.

As part of the change, most of the callers of the dashboard_api_fetch(),
such as the dashboard_fetch_tree_list() helper, were updated to correctly
pass the new argument around.

However, the cmd_list_trees() was not updated to pass the new argument
correctly to the aforementioned helper function, which it uses internally.

As such, when using kci-dev with the "results trees" subcommand, this
results in a TypeError as follows:

  TypeError: dashboard_fetch_tree_list() missing 1 required positional argument: 'use_json'

Thus, add the missing argument when invoking dashboard_fetch_tree_list()
to fix the subcommand invocation error.

Signed-off-by: Krzysztof Wilczyński <krzysztof.wilczynski@collabora.com>
@aliceinwire
Copy link
Member

thanks for the fix

@aliceinwire aliceinwire merged commit 6309241 into kernelci:main Apr 3, 2025
5 checks passed
@kwilczynski kwilczynski deleted the fix/fix-results-trees-subcommand branch April 3, 2025 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants