From 7910a04cfa394f58f5ee7b8da564c9b0428b3414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Cirne?= Date: Thu, 23 Dec 2021 16:54:45 +0000 Subject: [PATCH] Change from username to user --- galaxy.yml | 2 +- plugins/inventory/inventory.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/galaxy.yml b/galaxy.yml index 9ae140b..3436a28 100644 --- a/galaxy.yml +++ b/galaxy.yml @@ -1,6 +1,6 @@ namespace: mrsuicideparrot name: proxmox_plugin -version: 0.0.1 +version: 0.0.2 readme: README.md authors: - André Cirne diff --git a/plugins/inventory/inventory.py b/plugins/inventory/inventory.py index a60a2ee..6f81171 100644 --- a/plugins/inventory/inventory.py +++ b/plugins/inventory/inventory.py @@ -15,7 +15,7 @@ import re ANSIBLE_METADATA = { - 'metadata_version': '0.0.1', + 'metadata_version': '0.0.2', 'status': ['preview'], 'supported_by': 'community' } @@ -39,7 +39,7 @@ required: True env: - name: PROXMOX_URL - username: + user: description: proxmox authentication user type: str required: True @@ -306,7 +306,7 @@ def parse(self, inventory, loader, path, cache=None): self._read_config_data(path) - proxmoxInstance = ProxmoxAPI(self.get_option('url'), self.get_option('username'), self.get_option('password'), self.get_option('validate_certs')) + proxmoxInstance = ProxmoxAPI(self.get_option('url'), self.get_option('user'), self.get_option('password'), self.get_option('validate_certs')) for node in proxmoxInstance.nodes().get_names(): try: