yum/dnf: check type of elements in a name (#70072)
This commit is contained in:
parent
8a88b845ce
commit
843751a00d
4 changed files with 7 additions and 1 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
bugfixes:
|
||||||
|
- yum/dnf - check type of elements in a name
|
|
@ -37,7 +37,7 @@ yumdnf_argument_spec = dict(
|
||||||
install_repoquery=dict(type='bool', default=True),
|
install_repoquery=dict(type='bool', default=True),
|
||||||
install_weak_deps=dict(type='bool', default=True),
|
install_weak_deps=dict(type='bool', default=True),
|
||||||
list=dict(type='str'),
|
list=dict(type='str'),
|
||||||
name=dict(type='list', aliases=['pkg'], default=[]),
|
name=dict(type='list', elements='str', aliases=['pkg'], default=[]),
|
||||||
releasever=dict(default=None),
|
releasever=dict(default=None),
|
||||||
security=dict(type='bool', default=False),
|
security=dict(type='bool', default=False),
|
||||||
skip_broken=dict(type='bool', default=False),
|
skip_broken=dict(type='bool', default=False),
|
||||||
|
|
|
@ -28,6 +28,8 @@ options:
|
||||||
required: true
|
required: true
|
||||||
aliases:
|
aliases:
|
||||||
- pkg
|
- pkg
|
||||||
|
type: list
|
||||||
|
elements: str
|
||||||
|
|
||||||
list:
|
list:
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -38,6 +38,8 @@ options:
|
||||||
- You can also pass a url or a local path to a rpm file (using state=present).
|
- You can also pass a url or a local path to a rpm file (using state=present).
|
||||||
To operate on several packages this can accept a comma separated string of packages or (as of 2.0) a list of packages.
|
To operate on several packages this can accept a comma separated string of packages or (as of 2.0) a list of packages.
|
||||||
aliases: [ pkg ]
|
aliases: [ pkg ]
|
||||||
|
type: list
|
||||||
|
elements: str
|
||||||
exclude:
|
exclude:
|
||||||
description:
|
description:
|
||||||
- Package name(s) to exclude when state=present, or latest
|
- Package name(s) to exclude when state=present, or latest
|
||||||
|
|
Loading…
Add table
Reference in a new issue