-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
opkg: remove useless default value for force #6513
Conversation
Co-authored-by: Felix Fontein <[email protected]>
There was a problem hiding this 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.
Backport to stable-7: 💚 backport PR created✅ Backport PR branch: Backported as #6590 🤖 @patchback |
@russoz thanks! |
* 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)
…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]>
SUMMARY
This module has a legacy value
""
for theforce
parameter. Whenforce=""
the module does not pass any CLI "force" option to the underlyingopkg
command. The same happens ifforce=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
""
andnull
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
COMPONENT NAME
opkg