Skip to content

infamy: fix NameError in Topology.get_password (qstrip -> _qstrip) - #1588

Open
pjator wants to merge 1 commit into
kernelkit:mainfrom
pjator:fix-infamy-qstrip
Open

infamy: fix NameError in Topology.get_password (qstrip -> _qstrip)#1588
pjator wants to merge 1 commit into
kernelkit:mainfrom
pjator:fix-infamy-qstrip

Conversation

@pjator

@pjator pjator commented Aug 14, 2026

Copy link
Copy Markdown

Description

Fix a NameError in the Infamy test harness. Topology.get_password()
called qstrip() but the helper is defined as _qstrip() — so any
physical topology that sets a per-node password attribute (or any
value needing quote-stripping) crashed during env.attach().

Found while running the hardware regression suite against a physical
device. Worked around locally, this is the proper upstream fix.

Checklist

Tick relevant boxes, this PR is-a or has-a:

  • Bugfix
    • Regression tests
    • ChangeLog updates (for next release)
  • Feature
    • YANG model change => revision updated?
    • Regression tests added?
    • ChangeLog updates (for next release)
    • Documentation added?
  • Test changes
    • Checked in changed Readme.adoc (make test-spec)
    • Added new test to group Readme.adoc and yaml file
  • Code style update (formatting, renaming)
  • Refactoring (please detail in commit messages)
  • Build related changes
  • Documentation content changes
    • ChangeLog updated (for major changes)
  • Other (please describe):

Disclaimer: Author: Peter Woxblom. Drafting and implementation assisted
by Jarvis, an AI agent (Hermes on DeepSeek V4 Flash backend). Reviewed
and tested on hardware by the author.

The password attribute was read with a call to qstrip(), but the
helper is named _qstrip().  Any physical topology that sets a per-node
password (or an unquoted value needing stripping) crashed with
NameError during attach.

Co-authored-by: Jarvis (Hermes Agent) <jarvis@woxblom.com>
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.

1 participant