From ff359431a1df263bd056783d74d5c667953ffab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Mon, 7 Dec 2020 08:30:50 +0100 Subject: [PATCH] Restore Python 2.7 support (#45) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Lukas Kämmerling --- plugins/inventory/hcloud.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/inventory/hcloud.py b/plugins/inventory/hcloud.py index c95b8cd..080327e 100644 --- a/plugins/inventory/hcloud.py +++ b/plugins/inventory/hcloud.py @@ -237,12 +237,12 @@ class InventoryModule(BaseInventoryPlugin, Constructable): def verify_file(self, path): """Return the possibly of a file being consumable by this plugin.""" return ( - super().verify_file(path) and + super(InventoryModule, self).verify_file(path) and path.endswith(("hcloud.yaml", "hcloud.yml")) ) def parse(self, inventory, loader, path, cache=True): - super().parse(inventory, loader, path, cache) + super(InventoryModule, self).parse(inventory, loader, path, cache) self._read_config_data(path) self._configure_hcloud_client() self._test_hcloud_token()