mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
avoid errors from possible None/False args
This commit is contained in:
parent
75b6f61619
commit
5679b5414c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue