Skip to content

fix(operations): handle password prompt from sudo-rs (eg. recent Ubuntu)#1734

Merged
Fizzadar merged 1 commit into
pyinfra-dev:3.xfrom
egnor:sudo-rs-prompt
May 19, 2026
Merged

fix(operations): handle password prompt from sudo-rs (eg. recent Ubuntu)#1734
Fizzadar merged 1 commit into
pyinfra-dev:3.xfrom
egnor:sudo-rs-prompt

Conversation

@egnor

@egnor egnor commented May 7, 2026

Copy link
Copy Markdown
Contributor

On systems using sudo-rs (eg. recent Ubuntu), sudo password prompts take a slightly different format, which breaks the password prompt spotting logic. (this bit Ansible here: ansible/ansible#85837) This PR fixes that by recognizing both password prompt strings.

This should PARTIALLY address #1499, at least enough to limp forward even if that version of sudo doesn't take all the same flags.

This is adjacent to #1689 - it's orthogonal, but touches the same code, and whichever lands second will need a rebase.

  • Pull request is based on the default branch (3.x at this time)
  • Pull request includes tests for any new/updated operations/facts
  • Pull request includes documentation for any new/updated operations/facts
  • Tests pass (see scripts/dev-test.sh) (except for pre-existing apt.packages.test_apt_packages_update_cached)
  • Type checking & code style passes (see scripts/dev-lint.sh)
  • Pull request title follows the
    conventional commits format

@wowi42 wowi42 added new feature connectors Connector issues - builtin integrations with other tools. labels May 8, 2026

@Fizzadar Fizzadar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Simple quick fix, LGTM. #1689 bundles other changes so will land this now and rebase there. Thanks @egnor!

@Fizzadar Fizzadar merged commit d465f6c into pyinfra-dev:3.x May 19, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connectors Connector issues - builtin integrations with other tools. new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants