mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
Fix inventory plugin does not work with old configuration files (#15)
This commit is contained in:
parent
d795d331e7
commit
41354355e6
7 changed files with 15 additions and 9 deletions
|
|
@ -230,7 +230,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(("hcloud.yaml", "hcloud.yml"))
|
||||
)
|
||||
|
||||
def parse(self, inventory, loader, path, cache=True):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue