Browse Source

Add -var-file and -var to destroy operation ; Go fmt the code

pull/71/head
Luis Silva 7 years ago
parent
commit
4ebb830452
  1. 7
      plugin.go

7
plugin.go

@ -255,6 +255,13 @@ func tfDestroy(config Config) *exec.Cmd {
for _, v := range config.Targets {
args = append(args, fmt.Sprintf("-target=%s", v))
}
for _, v := range config.VarFiles {
args = append(args, "-var-file", fmt.Sprintf("%s", v))
}
for k, v := range config.Vars {
args = append(args, "-var")
args = append(args, fmt.Sprintf("%s=%s", k, v))
}
if config.Parallelism > 0 {
args = append(args, fmt.Sprintf("-parallelism=%d", config.Parallelism))
}

Loading…
Cancel
Save