mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
avoid errors from possible None/False args
This commit is contained in:
@@ -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 ]
|
args = [ os.path.expandvars(os.path.expanduser(x)) for x in args if x ]
|
||||||
|
|
||||||
rc = 0
|
rc = 0
|
||||||
msg = None
|
msg = None
|
||||||
|
|||||||
Reference in New Issue
Block a user