Skip to content

[Bug] ents list Command Fails with TypeError #242

@jpulgarin

Description

@jpulgarin

Severity: High (command completely non-functional)

Version Affected: Since v1.9.0 (commit a959a5c)

Description

The cloudsmith ents list command fails with a TypeError when invoked, making it completely unusable.

Backtrace

  TypeError: list_entitlements() got an unexpected keyword argument 'show_all'
    File "cloudsmith_cli/cli/decorators.py", line 181, in wrapper
      return ctx.invoke(f, *args, **kwargs)
    File "cloudsmith_cli/cli/commands/entitlements.py", line 121, in list_
      return list_entitlements(*args, **kwargs)

Steps to Reproduce

cloudsmith ents list test-org/test-repo

Root Cause

Commit a959a5c (CENG-355) added --show-all to @decorators.common_cli_list_options, which applies to all commands using it. The decorator now passes
show_all in kwargs, but list_entitlements() function signature in entitlements.py was not updated.

Environment

  • Python: 3.13.10
  • OS: macOS

Additional Notes

Command quarantine may have the same issue - uses same decorator but signatures appear to lack show_all parameter.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions