0
0
mirror of https://github.com/thegeeklab/wp-opentofu.git synced 2024-11-10 04:10:41 +00:00

TF apply only if NOT dryRun.

This commit is contained in:
John Engelman 2015-11-10 08:34:23 -06:00
parent 64d142149b
commit 431099eb7d

View File

@ -35,7 +35,7 @@ func main() {
commands = append(commands, remoteConfigCommand(remote)) commands = append(commands, remoteConfigCommand(remote))
} }
commands = append(commands, planCommand(vargs.Vars)) commands = append(commands, planCommand(vargs.Vars))
if vargs.DryRun { if !vargs.DryRun {
commands = append(commands, applyCommand()) commands = append(commands, applyCommand())
} }