fixed formatting
Dieser Commit ist enthalten in:
Ursprung
a66f30ebad
Commit
5efc47cccc
|
@ -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
|
||||||
'''
|
"""
|
||||||
|
|
Laden…
In neuem Issue referenzieren