From 45a8deb38824e8bfbe03e383e6c500d8b4ececae Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 3 Jun 2014 15:58:24 -0700 Subject: [PATCH] terraform: store the configuration on the Terraform struct --- terraform/terraform.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/terraform/terraform.go b/terraform/terraform.go index 7128872f3..837e2be01 100644 --- a/terraform/terraform.go +++ b/terraform/terraform.go @@ -11,8 +11,9 @@ import ( // Terraform from code, and can perform operations such as returning // all resources, a resource tree, a specific resource, etc. type Terraform struct { - config *config.Config - mapping map[*config.Resource]ResourceProvider + config *config.Config + mapping map[*config.Resource]ResourceProvider + variables map[string]string } // Config is the configuration that must be given to instantiate @@ -98,8 +99,9 @@ func New(c *Config) (*Terraform, error) { } return &Terraform{ - config: c.Config, - mapping: mapping, + config: c.Config, + mapping: mapping, + variables: c.Variables, }, nil }