Commit 3384021f by Cédric RICARD

Fixed test on 'cached' parameter.

'cached' parameter is boolean, not string
parent bdbb3bb4
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment