Browse Source

Allow 'secrets' and 'vars' to be blank

pull/26/head
Jacob McCann 8 years ago
parent
commit
914ed2ba90
  1. 4
      main.go

4
main.go

@ -93,13 +93,17 @@ func run(c *cli.Context) error {
json.Unmarshal([]byte(c.String("terraform.remote")), &remote)
var vars map[string]string
if c.String("terraform.vars") != "" {
if err := json.Unmarshal([]byte(c.String("terraform.vars")), &vars); err != nil {
panic(err)
}
}
var secrets map[string]string
if c.String("terraform.secrets") != "" {
if err := json.Unmarshal([]byte(c.String("terraform.secrets")), &secrets); err != nil {
panic(err)
}
}
plugin := Plugin{
Config: Config{

Loading…
Cancel
Save