avoid errors from possible None/False args

pull/14899/head
Brian Coca 9 years ago committed by James Cammarata
parent 7fd9c4998d
commit 83a08b2a64

@ -1772,7 +1772,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