Ensure the return value for changed is bool (#2830)

fixes #2827
reviewable/pr18780/r1
Robin Roth 8 years ago committed by René Moser
parent f38fbaefc6
commit 64879e5eb5

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

Loading…
Cancel
Save