From 3384021fe61a60804af6dc4b4fca6c24704ae115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20RICARD?= Date: Tue, 15 Apr 2014 16:41:27 +0200 Subject: [PATCH] Fixed test on 'cached' parameter. 'cached' parameter is boolean, not string --- library/packaging/pkgng | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/pkgng b/library/packaging/pkgng index b8893b27ce6..a1f443fd4e1 100644 --- a/library/packaging/pkgng +++ b/library/packaging/pkgng @@ -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: