diff --git a/plugins/inventory/scp.py b/plugins/inventory/scp.py index ce12e07..018edf3 100644 --- a/plugins/inventory/scp.py +++ b/plugins/inventory/scp.py @@ -1,13 +1,14 @@ -from ansible.plugins.inventory import BaseInventoryPlugin +from xmlrpc.client import ServerProxy + from ansible.inventory.data import InventoryData from ansible.parsing.dataloader import DataLoader -from xmlrpc.client import ServerProxy -from zeep import Client, Settings +from ansible.plugins.inventory import BaseInventoryPlugin from ansible.utils.display import Display - +from zeep import Client, Settings display = Display() + class InventoryModule(BaseInventoryPlugin): NAME = "sebastian.netcup.scp" loader: DataLoader @@ -59,7 +60,7 @@ class InventoryModule(BaseInventoryPlugin): inventory.set_variable(nickname, "up", serverinfo["status"] == "online") -DOCUMENTATION = r''' +DOCUMENTATION = r""" name: sebastian.netcup.scp plugin_type: inventory short_description: Returns Ansible inventory from netcup SCP @@ -78,4 +79,4 @@ DOCUMENTATION = r''' - API password to authenticate againt the api. - This is different from you SCP password and must be set indipendently from the SCP password required: true -''' +"""