allow update_cache as stand alone operation for yum/dnf (#46183)

* allow update_cache as stand alone operation for yum/dnf

Fixes #40068

Signed-off-by: Adam Miller <admiller@redhat.com>

* make sanity tests happy

Signed-off-by: Adam Miller <admiller@redhat.com>
This commit is contained in:
Adam Miller 2018-10-08 07:39:49 -05:00 committed by ansibot
parent 960dfa862b
commit c8ed5c29e9
4 changed files with 49 additions and 3 deletions

View file

@ -48,7 +48,7 @@ yumdnf_argument_spec = dict(
lock_poll=dict(type='int', default=-1),
lock_timeout=dict(type='int', default=10),
),
required_one_of=[['name', 'list']],
required_one_of=[['name', 'list', 'update_cache']],
mutually_exclusive=[['name', 'list']],
supports_check_mode=True,
)