mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
endswith supports tuples, nicer
This commit is contained in:
parent
8387b839d8
commit
96d577c4c9
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue