diff options
author | Adam Miller <admiller@redhat.com> | 2018-10-10 17:49:24 -0500 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2018-10-10 18:49:24 -0400 |
commit | ad405fc21e8f060b62c9f0095197946028feec68 (patch) | |
tree | b09991a133aced119772c9d2a7ecd7d2ccafdf79 /test/integration/targets/yum | |
parent | d3cc2f803a3e66396b8a686b49607c1a470811dc (diff) | |
download | ansible-ad405fc21e8f060b62c9f0095197946028feec68.tar.gz |
yum module handle list optional empty strings properly (#46634)
Fixes #46517
Signed-off-by: Adam Miller <admiller@redhat.com>
Diffstat (limited to 'test/integration/targets/yum')
-rw-r--r-- | test/integration/targets/yum/tasks/yum.yml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/integration/targets/yum/tasks/yum.yml b/test/integration/targets/yum/tasks/yum.yml index 52d58d8f96..54bad92159 100644 --- a/test/integration/targets/yum/tasks/yum.yml +++ b/test/integration/targets/yum/tasks/yum.yml @@ -83,6 +83,16 @@ that: - "not yum_result is changed" +- name: install sos again with empty string enablerepo + yum: name=sos state=present enablerepo="" + register: yum_result +- name: verify no change on third install with empty string enablerepo + assert: + that: + - "yum_result is success" + - "not yum_result is changed" + + # INSTALL AGAIN WITH LATEST - name: install sos again with state latest in check mode yum: name=sos state=latest |