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

This commit is contained in:
Martin Krizek 2020-06-15 17:01:42 +02:00 committed by GitHub
parent 8a88b845ce
commit 843751a00d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- yum/dnf - check type of elements in a name

View file

@ -37,7 +37,7 @@ yumdnf_argument_spec = dict(
install_repoquery=dict(type='bool', default=True),
install_weak_deps=dict(type='bool', default=True),
list=dict(type='str'),
name=dict(type='list', aliases=['pkg'], default=[]),
name=dict(type='list', elements='str', aliases=['pkg'], default=[]),
releasever=dict(default=None),
security=dict(type='bool', default=False),
skip_broken=dict(type='bool', default=False),

View file

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

View file

@ -38,6 +38,8 @@ options:
- 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.
aliases: [ pkg ]
type: list
elements: str
exclude:
description:
- Package name(s) to exclude when state=present, or latest