From fb49e0401ec787bbeef0a369cae4b428c8614d02 Mon Sep 17 00:00:00 2001 From: Robin Roth Date: Fri, 2 Sep 2016 08:08:08 +0300 Subject: [PATCH] Ensure the return value for changed is bool (#2830) fixes #2827 --- lib/ansible/modules/extras/packaging/os/zypper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/packaging/os/zypper.py b/lib/ansible/modules/extras/packaging/os/zypper.py index f958a44da4..9d90dbe044 100644 --- a/lib/ansible/modules/extras/packaging/os/zypper.py +++ b/lib/ansible/modules/extras/packaging/os/zypper.py @@ -427,7 +427,7 @@ def main(): elif state in ['installed', 'present', 'latest']: packages_changed, retvals = package_present(module, name, state == 'latest') - retvals['changed'] = retvals['rc'] == 0 and packages_changed + retvals['changed'] = retvals['rc'] == 0 and bool(packages_changed) if module._diff: set_diff(module, retvals, packages_changed)