From 431099eb7d577c2efe19b2f3b537fc3e341ce160 Mon Sep 17 00:00:00 2001 From: John Engelman Date: Tue, 10 Nov 2015 08:34:23 -0600 Subject: [PATCH] TF apply only if NOT dryRun. --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a4ee0d1..be849c0 100644 --- a/main.go +++ b/main.go @@ -35,7 +35,7 @@ func main() { commands = append(commands, remoteConfigCommand(remote)) } commands = append(commands, planCommand(vargs.Vars)) - if vargs.DryRun { + if !vargs.DryRun { commands = append(commands, applyCommand()) }