mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
terraform: store the configuration on the Terraform struct
This commit is contained in:
parent
d2088463d3
commit
45a8deb388
@ -13,6 +13,7 @@ import (
|
|||||||
type Terraform struct {
|
type Terraform struct {
|
||||||
config *config.Config
|
config *config.Config
|
||||||
mapping map[*config.Resource]ResourceProvider
|
mapping map[*config.Resource]ResourceProvider
|
||||||
|
variables map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config is the configuration that must be given to instantiate
|
// Config is the configuration that must be given to instantiate
|
||||||
@ -100,6 +101,7 @@ func New(c *Config) (*Terraform, error) {
|
|||||||
return &Terraform{
|
return &Terraform{
|
||||||
config: c.Config,
|
config: c.Config,
|
||||||
mapping: mapping,
|
mapping: mapping,
|
||||||
|
variables: c.Variables,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user