From 052df02ebc6449b11fa1cd057f49be8eaa5c725c Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 31 Dec 2023 22:55:35 +0100 Subject: [PATCH] Fixed new interface. --- pvm/__main__.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/pvm/__main__.py b/pvm/__main__.py index f7231f9..8379a7d 100644 --- a/pvm/__main__.py +++ b/pvm/__main__.py @@ -9,16 +9,14 @@ conf = DotMap(yaml.safe_load(open("input.yaml").read())) config = pulumi.Config() provider = proxmox.Provider("proxmoxve", - virtual_environment = { - "endpoint": conf.pve.url, - "insecure": conf.pve.insecure, - "username": conf.pve.username, - "password": config.require_secret("password") - } + endpoint=conf.pve.url, + insecure=conf.pve.insecure, + username=conf.pve.username, + password=config.require_secret("password") ) vm = proxmox.vm.VirtualMachine(conf.vm.name, - node_name = conf.pve.nodename, + node_name=conf.pve.nodename, agent = proxmox.vm.VirtualMachineAgentArgs( enabled = True, trim = True,