Skip to content

refactor: use _cli_command attribute for CLI invocation in ClusterLib#3353

Merged
mkoura merged 1 commit intomasterfrom
allow_cli_command_override
Feb 26, 2026
Merged

refactor: use _cli_command attribute for CLI invocation in ClusterLib#3353
mkoura merged 1 commit intomasterfrom
allow_cli_command_override

Conversation

@mkoura
Copy link
Collaborator

@mkoura mkoura commented Feb 26, 2026

  • Introduce self._cli_command attribute to store the CLI command name.
  • Pass constructed cli_args_strs_all directly to super().cli and set add_default_args to False to avoid duplicating default arguments.

- Introduce self._cli_command attribute to store the CLI command name.
- Pass constructed cli_args_strs_all directly to super().cli and set add_default_args to False to avoid duplicating default arguments.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Refactors the custom ClusterLib.cli() wrapper so the actual invocation uses a single, consistently constructed CLI argument list (including the CLI command name), while avoiding duplicate “default args” being added by both the wrapper and the base clusterlib.ClusterLib.

Changes:

  • Introduce self._cli_command to centralize the CLI executable name.
  • Build cli_args_strs_all once and pass it directly to super().cli(...).
  • Force add_default_args=False in the super().cli(...) call to prevent double-prepending defaults.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mkoura mkoura merged commit 6a4c6a0 into master Feb 26, 2026
7 checks passed
@mkoura mkoura deleted the allow_cli_command_override branch February 26, 2026 13:30
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.

2 participants