mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
endswith supports tuples, nicer
This commit is contained in:
@@ -161,7 +161,7 @@ class InventoryModule(BaseInventoryPlugin):
|
||||
|
||||
valid = False
|
||||
if super(InventoryModule, self).verify_file(path):
|
||||
if path.endswith('.vbox.yaml') or path.endswith('.vbox.yml'):
|
||||
if path.endswith(('.vbox.yaml', '.vbox.yml')):
|
||||
valid = True
|
||||
return valid
|
||||
|
||||
|
||||
Reference in New Issue
Block a user