From c2dbc0e31826c2a260733b8d241bb32a5b234176 Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Wed, 17 Aug 2022 01:57:25 +0200 Subject: [PATCH] Correzioni per richiamata configurazione. --- proxmoxve-python/__main__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/proxmoxve-python/__main__.py b/proxmoxve-python/__main__.py index 8644e86..6281a59 100644 --- a/proxmoxve-python/__main__.py +++ b/proxmoxve-python/__main__.py @@ -7,16 +7,16 @@ config = pulumi.Config() provider = proxmox.Provider("proxmoxve", virtual_environment = { - "endpoint": config.endpoint, + "endpoint": config.require("endpoint"), "insecure": True, "username": "root@pam", - "password": config.pvepassword + "password": config.require_secret("pvepassword") } ) vm = proxmox.vm.VirtualMachine("vm", name = "virtual-machine", - node_name = config.node_name, + node_name = config.require("node_name"), agent = proxmox.vm.VirtualMachineAgentArgs( enabled = True, trim = True, @@ -31,7 +31,7 @@ vm = proxmox.vm.VirtualMachine("vm", dedicated = 2048 ), clone = proxmox.vm.VirtualMachineCloneArgs( - node_name = config.node_name, + node_name = config.require("node_name"), datastore_id = "local-lvm", size = 20, file_format = "qcow2"