fixed formatting

Dieser Commit ist enthalten in:
Sebastian Tobie 2023-12-09 13:06:45 +01:00
Ursprung a66f30ebad
Commit 5efc47cccc
1 geänderte Dateien mit 7 neuen und 6 gelöschten Zeilen

Datei anzeigen

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