mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Fix docker_swarm, docker_machine and gitlab_runners inventory plugins' verify method. (#67)
This commit is contained in:
@@ -120,7 +120,7 @@ class InventoryModule(BaseInventoryPlugin, Constructable):
|
||||
"""Return the possibly of a file being consumable by this plugin."""
|
||||
return (
|
||||
super(InventoryModule, self).verify_file(path) and
|
||||
path.endswith((self.NAME + ".yaml", self.NAME + ".yml")))
|
||||
path.endswith(("gitlab_runners.yaml", "gitlab_runners.yml")))
|
||||
|
||||
def parse(self, inventory, loader, path, cache=True):
|
||||
if not HAS_GITLAB:
|
||||
|
||||
Reference in New Issue
Block a user