From 88beafd43d23daef2add9ffabd7f45b1ccad9d4a Mon Sep 17 00:00:00 2001 From: Veselin Bochev Date: Tue, 7 Jun 2022 13:22:52 +0300 Subject: [PATCH] fix typos --- bin/pre-terraform | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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] -- 2.39.5