avoid errors from possible None/False args

pull/14330/head
Brian Coca 9 years ago
parent 75b6f61619
commit 5679b5414c

@ -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 ]
args = [ os.path.expandvars(os.path.expanduser(x)) for x in args if x ]
rc = 0
msg = None

Loading…
Cancel
Save