Fixed test on 'cached' parameter.

'cached' parameter is boolean, not string
reviewable/pr18780/r1
Cédric RICARD 11 years ago
parent 076bba555f
commit 556c780ac9

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

Loading…
Cancel
Save