From: Veselin Bochev Date: Tue, 7 Jun 2022 10:22:52 +0000 (+0300) Subject: fix typos X-Git-Tag: 1.6.1~1^2~4 X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=88beafd43d23daef2add9ffabd7f45b1ccad9d4a;p=pixelpark%2Fcreate-terraform.git fix typos --- diff --git a/bin/pre-terraform b/bin/pre-terraform index 8093648..5a27bce 100755 --- a/bin/pre-terraform +++ b/bin/pre-terraform @@ -96,6 +96,7 @@ fields = [ "os", "partitions", "tier", + "project", "pp_ip_cidr", "ipaddress", "pp_purpose", @@ -131,7 +132,7 @@ sample_pre_tf = { "tier": "__", "environment": "__" }, - "namservers": [], + "nameservers": [], "searchdomains": [], "dns_options": "__" }, @@ -154,7 +155,7 @@ try: # Nameservers resolv.conf for ns in data["resolv_conf"]["value"]["nameserver"]: - sample_pre_tf["defaults"]["namservers"].append(ns) + sample_pre_tf["defaults"]["nameservers"].append(ns) # Searchdomains resolv.conf for sd in data["resolv_conf"]["value"]["search"]: @@ -162,7 +163,7 @@ try: except: timeout = 1 attempts = 2 - sample_pre_tf["defaults"]["namservers"] = [] + sample_pre_tf["defaults"]["nameservers"] = [] sample_pre_tf["defaults"]["searchdomains"] = [] sample_pre_tf["defaults"]["dns_options"] = f"timeout: {timeout} attempts: {attempts}" @@ -216,7 +217,7 @@ try: sample_pre_tf["defaults"]["customer"] = data["pp_owner"]["value"].split(' ')[0] # Project - sample_pre_tf["defaults"]["puppet"]["project"] = data["customer"]["value"] + sample_pre_tf["defaults"]["puppet"]["project"] = data["project"]["value"] # Purpose sample_pre_tf["defaults"]["purpose"] = data["pp_purpose"]["value"].split(' ')[0]