This commit is contained in:
parent
e5a645f62d
commit
b653a0f05e
@ -61,7 +61,7 @@ DOCUMENTATION = """
|
|||||||
|
|
||||||
EXAMPLES = """
|
EXAMPLES = """
|
||||||
# proxmox.yml
|
# proxmox.yml
|
||||||
plugin: community.general.proxmox
|
plugin: xoxys.general.proxmox
|
||||||
server: pve.example.com
|
server: pve.example.com
|
||||||
user: admin@pve
|
user: admin@pve
|
||||||
password: secure
|
password: secure
|
||||||
@ -86,7 +86,7 @@ except ImportError:
|
|||||||
|
|
||||||
|
|
||||||
class InventoryModule(BaseInventoryPlugin):
|
class InventoryModule(BaseInventoryPlugin):
|
||||||
NAME = "community.general.proxmox"
|
NAME = "xoxys.general.proxmox"
|
||||||
|
|
||||||
def _auth(self):
|
def _auth(self):
|
||||||
return ProxmoxAPI(
|
return ProxmoxAPI(
|
||||||
@ -187,7 +187,7 @@ class InventoryModule(BaseInventoryPlugin):
|
|||||||
raise AnsibleError("Proxmoxer API error: {0}".format(to_native(e)))
|
raise AnsibleError("Proxmoxer API error: {0}".format(to_native(e)))
|
||||||
|
|
||||||
# Merge QEMU and Containers lists from this node
|
# Merge QEMU and Containers lists from this node
|
||||||
instances = self._get_variables(qemu_list.copy(), "qemu")
|
instances = self._get_variables(qemu_list, "qemu").copy()
|
||||||
instances.update(self._get_variables(container_list, "container"))
|
instances.update(self._get_variables(container_list, "container"))
|
||||||
|
|
||||||
for host in instances:
|
for host in instances:
|
||||||
|
Loading…
Reference in New Issue
Block a user