Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snap: add param "dangerous" #6908

Merged

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented Jul 10, 2023

SUMMARY

Add dangerous parameter to module, mapping to CLI parameter --dangerous.

Because of explicitly considering named snap files in the name parameter, more logic was required to ensure the idempotency of the module.

Fixes #5715

ISSUE TYPE
  • Docs Pull Request
  • Feature Pull Request
  • Test Pull Request
COMPONENT NAME

snap

@ansibullbot
Copy link
Collaborator

@ansibullbot ansibullbot added docs integration tests/integration module module module_utils module_utils plugins plugin (any type) tests tests unit tests/unit labels Jul 10, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 labels Jul 12, 2023
@felixfontein
Copy link
Collaborator

recheck

@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label Jul 15, 2023
@felixfontein felixfontein merged commit ea6fb9d into ansible-collections:main Jul 15, 2023
@patchback
Copy link

patchback bot commented Jul 15, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/ea6fb9da8f3afc57956a996977f14b4c39d67168/pr-6908

Backported as #6944

🤖 @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 Jul 15, 2023
* snap: add param "dangerous"

* adjusted run_command out for simple test case

* add changelog frag

(cherry picked from commit ea6fb9d)
@felixfontein
Copy link
Collaborator

@russoz thanks!

@russoz russoz deleted the 5715-snap-dangerous branch July 15, 2023 12:17
felixfontein pushed a commit that referenced this pull request Jul 15, 2023
…6944)

snap: add param "dangerous" (#6908)

* snap: add param "dangerous"

* adjusted run_command out for simple test case

* add changelog frag

(cherry picked from commit ea6fb9d)

Co-authored-by: Alexei Znamensky <[email protected]>
valeriopoggi pushed a commit to valeriopoggi/community.general that referenced this pull request Jul 17, 2023
* snap: add param "dangerous"

* adjusted run_command out for simple test case

* add changelog frag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs integration tests/integration module_utils module_utils module module plugins plugin (any type) tests tests unit tests/unit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

snap module doesn't expose --dangerous parameter for installing unsigned packages
3 participants