mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
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 <felix@fontein.de> * add to force param description * typo --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
64f74e1228
commit
e588e675d9
2 changed files with 6 additions and 3 deletions
2
changelogs/fragments/6513-opkg-default-force.yml
Normal file
2
changelogs/fragments/6513-opkg-default-force.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- opkg - remove default value ``""`` for parameter ``force`` as it causes the same behaviour of not having that parameter (https://github.com/ansible-collections/community.general/pull/6513).
|
|
@ -46,6 +46,8 @@ options:
|
|||
force:
|
||||
description:
|
||||
- The C(opkg --force) parameter used.
|
||||
- Passing C("") as value and not passing any value at all have both
|
||||
the same effect of B(not) using any C(--force-) parameter.
|
||||
choices:
|
||||
- ""
|
||||
- "depends"
|
||||
|
@ -58,7 +60,6 @@ options:
|
|||
- "remove"
|
||||
- "checksum"
|
||||
- "removal-of-dependent-packages"
|
||||
default: ""
|
||||
type: str
|
||||
update_cache:
|
||||
description:
|
||||
|
@ -114,8 +115,8 @@ class Opkg(StateModuleHelper):
|
|||
argument_spec=dict(
|
||||
name=dict(aliases=["pkg"], required=True, type="list", elements="str"),
|
||||
state=dict(default="present", choices=["present", "installed", "absent", "removed"]),
|
||||
force=dict(default="", choices=["", "depends", "maintainer", "reinstall", "overwrite", "downgrade", "space", "postinstall", "remove",
|
||||
"checksum", "removal-of-dependent-packages"]),
|
||||
force=dict(choices=["", "depends", "maintainer", "reinstall", "overwrite", "downgrade", "space",
|
||||
"postinstall", "remove", "checksum", "removal-of-dependent-packages"]),
|
||||
update_cache=dict(default=False, type='bool'),
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue