Skip to content

Conversation

@russoz
Copy link
Collaborator

@russoz russoz commented Nov 23, 2025

SUMMARY

The module was using subprocess.Popen() to run an external command, whilst the recommended way is to use AnsibleModule.run_command().

ISSUE TYPE
  • Refactoring Pull Request
COMPONENT NAME

onepassword_info

@ansibullbot
Copy link
Collaborator

cc @Rylon
click here for bot help

@ansibullbot ansibullbot added module module plugins plugin (any type) small_patch Hopefully easy to review labels Nov 23, 2025
@ansibullbot ansibullbot removed the small_patch Hopefully easy to review label Nov 23, 2025
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-11 Automatically create a backport for the stable-10 branch backport-12 Automatically create a backport for the stable-12 branch labels Nov 23, 2025
@felixfontein felixfontein removed the backport-11 Automatically create a backport for the stable-10 branch label Nov 23, 2025
@russoz
Copy link
Collaborator Author

russoz commented Nov 24, 2025

@felixfontein please note that this was not picked up by sanity checks before.

Apparently, the validation looks for a literal subprocess.Popen(), but in this case, since it from subprocess import Popen and then later just used Popen() the validation was tricked and failed to sound the alarm.

@russoz russoz merged commit f2731e1 into ansible-collections:main Nov 24, 2025
134 checks passed
@patchback
Copy link

patchback bot commented Nov 24, 2025

Backport to stable-12: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-12/f2731e1dac7cc795831a9f369a445a85b806a7de/pr-11193

Backported as #11208

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 24, 2025
* onepassword_info: replace subprocess.Popen() with run_command()

* add changelog frag

* Update plugins/modules/onepassword_info.py

Co-authored-by: Felix Fontein <[email protected]>

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit f2731e1)
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Nov 24, 2025
@felixfontein
Copy link
Collaborator

@russoz you might want to create an issue in ansible/ansible for that.

felixfontein added a commit that referenced this pull request Nov 24, 2025
…bprocess.Popen() with run_command() (#11208)

onepassword_info: replace subprocess.Popen() with run_command() (#11193)

* onepassword_info: replace subprocess.Popen() with run_command()

* add changelog frag

* Update plugins/modules/onepassword_info.py



---------


(cherry picked from commit f2731e1)

Co-authored-by: Alexei Znamensky <[email protected]>
Co-authored-by: Felix Fontein <[email protected]>
@russoz russoz deleted the onepassword-info-popen branch November 24, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-12 Automatically create a backport for the stable-12 branch module module plugins plugin (any type)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants