From 387375a253dce4aecf4aa4b99251472042bb220e Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Fri, 19 Apr 2024 01:19:27 +0200 Subject: [PATCH] Sistemazione di bug di configurazione. Correzione impostazione nome istanza. --- linode/__main__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/linode/__main__.py b/linode/__main__.py index 41f9a90..aca07a1 100644 --- a/linode/__main__.py +++ b/linode/__main__.py @@ -5,11 +5,10 @@ import pulumi_linode import yaml from dotmap import DotMap -conf = DotMap(yaml.safe_load(open("input.yaml").read())) -config = pulumi.Config() +config = DotMap(yaml.safe_load(open("input.yaml").read())) # Create a Linode resource (Linode Instance) -instance = pulumi_linode.Instance('my-instance', +instance = pulumi_linode.Instance(config.vm.name, type=config.linode.type, region=config.linode.region, image=config.linode.image,