]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
fix typos
authorVeselin Bochev <veselin.bochev@WKMZT0869FF7.global.publicisgroupe.net>
Tue, 7 Jun 2022 10:22:52 +0000 (13:22 +0300)
committerVeselin Bochev <veselin.bochev@WKMZT0869FF7.global.publicisgroupe.net>
Tue, 7 Jun 2022 10:22:52 +0000 (13:22 +0300)
bin/pre-terraform

index 8093648b1fb70c39b83ef6948e0f61f6a6d605f4..5a27bce3f0222bdacc7f8d96750b0e62a5aa0b4d 100755 (executable)
@@ -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]