From 7f993ce1405053252544d77d611db575a43904cb Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Sun, 8 Sep 2024 00:23:01 +0200 Subject: [PATCH] Fixing main syntax and deploy logo. --- linode-ansible/README.md | 2 ++ linode-ansible/__main__.py | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/linode-ansible/README.md b/linode-ansible/README.md index c72082a..f2062e3 100644 --- a/linode-ansible/README.md +++ b/linode-ansible/README.md @@ -1,3 +1,5 @@ +[![Deploy with Pulumi](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://git.sys42.eu/syntaxerrormmm/pulumi-templates/src/branch/main/linode-ansible) + # Quick configuration # Check out the file `input.yml` for a quick setup for a new machine. diff --git a/linode-ansible/__main__.py b/linode-ansible/__main__.py index 6e39884..6f48d62 100644 --- a/linode-ansible/__main__.py +++ b/linode-ansible/__main__.py @@ -8,8 +8,7 @@ import yaml from dotmap import DotMap config = DotMap(yaml.safe_load(open("input.yaml").read())) - -vmname = pulumi.Config("name") +vmname = pulumi.Config().require("name") # Create a Linode resource (Linode Instance) instance = pulumi_linode.Instance(vmname,