From ad37a9151415388b5d9072df3d638c6a222fcc87 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Fri, 5 Feb 2016 14:32:32 -0500 Subject: [PATCH] really only want to prevent None typep here false is sometimes needed --- lib/ansible/module_utils/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index cfa0e9b02b4..ea0e429b6b4 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -1825,7 +1825,7 @@ class AnsibleModule(object): # expand things like $HOME and ~ if not shell: - args = [ os.path.expandvars(os.path.expanduser(x)) for x in args if x ] + args = [ os.path.expandvars(os.path.expanduser(x)) for x in args if x is not None ] rc = 0 msg = None