summaryrefslogtreecommitdiff
path: root/lib/ansible/inventory
diff options
context:
space:
mode:
authorMatt Martz <matt@sivel.net>2018-07-09 11:24:51 -0500
committerBrian Coca <bcoca@users.noreply.github.com>2018-07-09 12:24:51 -0400
commitabb05c98f3cd0770cce69f4d90f00d4f2800060f (patch)
tree00d6307bf667ac349b66e196fa27ff0bb2bbb0d1 /lib/ansible/inventory
parent8e1d223301760dcfe480976946e2f6cd3532daf7 (diff)
downloadansible-abb05c98f3cd0770cce69f4d90f00d4f2800060f.tar.gz
Make sure we are comparing bytes extensions in inventory plugins (#42475)
* Ensure we are comparing text paths with extensions. Fixes #42118 * Add changelog
Diffstat (limited to 'lib/ansible/inventory')
-rw-r--r--lib/ansible/inventory/manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/inventory/manager.py b/lib/ansible/inventory/manager.py
index e93884eecd..6d6dfbd6c8 100644
--- a/lib/ansible/inventory/manager.py
+++ b/lib/ansible/inventory/manager.py
@@ -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