ansible/test/integration
Mark Goddard aa36b02ede
Fix fileglob plugin with non-existent subdirectory (#69451)
Since Ansible 2.9.8, if the fileglob plugin is passed a path containing
a subdirectory of a non-existent directory, it will fail. For example:

lookup('fileglob', '/'): ok
lookup('fileglob', '/foo'): (non-existent): ok
lookup('fileglob', '/foo/bar'): (non-existent): FAIL

The exact error depends on Python 2 or 3, but here is the error on
Python 2:

    AttributeError: 'NoneType' object has no attribute 'endswith'

And on Python 3:

    TypeError: expected str, bytes or os.PathLike object, not NoneType

This change fixes the issue by skipping paths that are falsey before
passing them to os.path.join().

Fixes: #69450
2020-05-12 09:12:21 -04:00
..
targets Fix fileglob plugin with non-existent subdirectory (#69451) 2020-05-12 09:12:21 -04:00
network-integration.cfg Clean up network test config. 2020-03-23 11:14:21 -05:00
network-integration.requirements.txt Update ansible-test network test provisioning. (#68220) 2020-03-23 11:14:21 -05:00