mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Make sure we are comparing bytes extensions in inventory plugins (#42475)
* Ensure we are comparing text paths with extensions. Fixes #42118 * Add changelog
This commit is contained in:
@@ -258,7 +258,7 @@ class InventoryManager(object):
|
||||
|
||||
# initialize and figure out if plugin wants to attempt parsing this file
|
||||
try:
|
||||
plugin_wants = bool(plugin.verify_file(source))
|
||||
plugin_wants = bool(plugin.verify_file(to_text(source)))
|
||||
except Exception:
|
||||
plugin_wants = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user