Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@cidrblock
Copy link
Contributor

This PR fixes the KeyError: 'command_borders' issue reported in #4513.

Changes:

  • Remove command_borders reference from login.py since the login command does not have this CLI parameter available through its @options decorator
  • Add missing command_borders reference to reset.py command_args since it has the CLI parameter but wasn't using it consistently

Problem:
The login command was trying to access ctx.params['command_borders'] but this parameter is not available because login uses @options(['host', 'scenario_name_single_with_default']) instead of @common_options() which includes command_borders.

Solution:
Align command_args dictionaries with their actual available CLI parameters:

  • Commands using @options without command_borders should not reference it
  • Commands using @options with command_borders or @common_options should reference it

Fixes #4513

Remove command_borders reference from login.py since login command does not
have this CLI parameter available. Add missing command_borders reference to
reset.py command_args since it has the CLI parameter but wasn't using it.

Fixes ansible#4513
@cidrblock cidrblock merged commit 2ef1c1b into ansible:main Aug 15, 2025
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

ctx.params: KeyError: 'command_borders'

2 participants