terraform: store the configuration on the Terraform struct

This commit is contained in:
Mitchell Hashimoto 2014-06-03 15:58:24 -07:00
parent d2088463d3
commit 45a8deb388
1 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,7 @@ import (
type Terraform struct {
config *config.Config
mapping map[*config.Resource]ResourceProvider
variables map[string]string
}
// Config is the configuration that must be given to instantiate
@ -100,6 +101,7 @@ func New(c *Config) (*Terraform, error) {
return &Terraform{
config: c.Config,
mapping: mapping,
variables: c.Variables,
}, nil
}