]> Frank Brehm's Git Trees - pixelpark/create-terraform.git/commitdiff
fixed customer field
authorVeselin Bochev <veselin.bochev@WKMZT0869FF7.global.publicisgroupe.net>
Wed, 1 Jun 2022 12:39:58 +0000 (15:39 +0300)
committerVeselin Bochev <veselin.bochev@WKMZT0869FF7.global.publicisgroupe.net>
Wed, 1 Jun 2022 12:39:58 +0000 (15:39 +0300)
bin/pre-terraform

index 786ebc61058d1b0f96f936f369b624c330a45a47..17d8c124e19d9a5effa6c9301c6b71db72ae68ed 100755 (executable)
@@ -162,7 +162,7 @@ try:
 
     # Customer
     sample_pre_tf["defaults"]["puppet"]["customer"] = data["customer"]["value"]
-    sample_pre_tf["defaults"]["customer"] = data["pp_owner"]["value"]
+    sample_pre_tf["defaults"]["customer"] = data["pp_owner"]["value"].split(' ')[0]
 
     # Project
     sample_pre_tf["defaults"]["puppet"]["project"] = data["pp_owner"]["value"]