really only want to prevent None typep here
false is sometimes needed
This commit is contained in:
parent
a2762bae3d
commit
ad37a91514
1 changed files with 1 additions and 1 deletions
|
@ -1825,7 +1825,7 @@ class AnsibleModule(object):
|
||||||
|
|
||||||
# expand things like $HOME and ~
|
# expand things like $HOME and ~
|
||||||
if not shell:
|
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
|
rc = 0
|
||||||
msg = None
|
msg = None
|
||||||
|
|
Loading…
Reference in a new issue