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

opkg: remove useless default value for force #6513

Merged

Conversation

russoz
Copy link
Collaborator

@russoz russoz commented May 10, 2023

SUMMARY

This module has a legacy value "" for the force parameter. When force="" the module does not pass any CLI "force" option to the underlying opkg command. The same happens if force=null.

So, the option "" and it being marked as default value is something that was arguably created to artificially indicate that the parameter is optional.

This PR removes the default, and given that both values "" and null will trigger the same behaviour in the module, this change is completely transparent to users.

A follow-up PR will then deprecate the option "", on the account that some users may be calling the module explicitly passing the empty string as parameter.

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

opkg

@ansibullbot
Copy link
Collaborator

cc @skinp
click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module plugins plugin (any type) small_patch Hopefully easy to review labels May 10, 2023
@ansibullbot ansibullbot removed the small_patch Hopefully easy to review label May 10, 2023
@felixfontein felixfontein added check-before-release PR will be looked at again shortly before release and merged if possible. backport-7 labels May 11, 2023
Copy link
Collaborator

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

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

To be merged for 7.1.0.

@ansibullbot ansibullbot added the stale_ci CI is older than 7 days, rerun before merging label May 22, 2023
@felixfontein felixfontein removed the check-before-release PR will be looked at again shortly before release and merged if possible. label May 29, 2023
@felixfontein felixfontein merged commit e588e67 into ansible-collections:main May 29, 2023
@patchback
Copy link

patchback bot commented May 29, 2023

Backport to stable-7: 💚 backport PR created

✅ Backport PR branch: patchback/backports/stable-7/e588e675d96b2a9d806e52ea1e06ec4172d403ae/pr-6513

Backported as #6590

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

@felixfontein
Copy link
Collaborator

@russoz thanks!

patchback bot pushed a commit that referenced this pull request May 29, 2023
* opkg: remove useless default value for force

* add changelog frag

* Update changelogs/fragments/6513-opkg-default-force.yml

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

* add to force param description

* typo

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit e588e67)
felixfontein pushed a commit that referenced this pull request May 29, 2023
…alue for force (#6590)

opkg: remove useless default value for force (#6513)

* opkg: remove useless default value for force

* add changelog frag

* Update changelogs/fragments/6513-opkg-default-force.yml

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

* add to force param description

* typo

---------

Co-authored-by: Felix Fontein <[email protected]>
(cherry picked from commit e588e67)

Co-authored-by: Alexei Znamensky <[email protected]>
@russoz russoz deleted the opkg-default-force branch May 29, 2023 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module plugins plugin (any type) stale_ci CI is older than 7 days, rerun before merging
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants