From d42f4d972a1c7a4022da6bc016cb643b6a9649f9 Mon Sep 17 00:00:00 2001 From: Mathias Merscher Date: Wed, 28 Nov 2018 14:00:58 +0100 Subject: [PATCH] transfer host environment variables from Terraform output (#852) --- lib/pharos/terraform/json_parser.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/pharos/terraform/json_parser.rb b/lib/pharos/terraform/json_parser.rb index ecdc997d6..c5b022477 100644 --- a/lib/pharos/terraform/json_parser.rb +++ b/lib/pharos/terraform/json_parser.rb @@ -60,6 +60,7 @@ def parse_host(bundle, host, index) host[:private_interface] = bundle['private_interface'][index] if bundle['private_interface'] host[:labels] = bundle['label'][0] if bundle['label'] host[:taints] = bundle['taint'] if bundle['taint'] + host[:environment] = bundle['environment'] if bundle['environment'] host[:user] = bundle['user'] if bundle['user'] host[:ssh_key_path] = bundle['ssh_key_path'] if bundle['ssh_key_path'] host[:bastion] = bundle['bastion'][0] if bundle['bastion']