yum/dnf: check type of elements in a name (#70072) (#70089)

(cherry picked from commit 843751a00d)
pull/69860/head
Martin Krizek 5 years ago committed by GitHub
parent f79c606aae
commit 055a24c027
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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),

@ -33,6 +33,8 @@ options:
required: true required: true
aliases: aliases:
- pkg - pkg
type: list
elements: str
list: list:
description: description:

@ -41,6 +41,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…
Cancel
Save