From 1fe744d2af30d329693d0dc765ef2c8b99c7edd1 Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Wed, 27 Feb 2013 20:02:34 +0100 Subject: [PATCH] Fix apt module's boolean check to expect converted value Fixes #2218. --- library/apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/apt b/library/apt index 46c730f4e90..45e39c25056 100644 --- a/library/apt +++ b/library/apt @@ -201,7 +201,7 @@ def main(): module.fail_json(msg="Cannot find apt-get") p = module.params - if p['package'] is None and p['update_cache'] != 'yes': + if p['package'] is None and not p['update_cache']: module.fail_json(msg='pkg=name and/or update_cache=yes is required') install_recommends = p['install_recommends']