1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixed test on 'cached' parameter.

'cached' parameter is boolean, not string
This commit is contained in:
Cédric RICARD 2014-04-15 16:41:27 +02:00
parent bdbb3bb4a1
commit 3384021fe6

View file

@ -149,7 +149,7 @@ def install_packages(module, pkgng_path, packages, cached, pkgsite):
else:
pkgsite = "-r %s" % (pkgsite)
if not module.check_mode and cached == "no":
if not module.check_mode and not cached:
if old_pkgng:
rc, out, err = module.run_command("%s %s update" % (pkgsite, pkgng_path))
else: