Skip to content

Commit

Permalink
Fix saving terraform tfstate file (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszo authored Feb 12, 2021
1 parent 42b8c51 commit e54baef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/runner/terraform/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (r *terraformRunner) saveOutput(out Output) error {

if out.Tfstate != nil {
r.log.Debug("Saving tfstate output", zap.String("path", r.cfg.Output.TfstateFilePath))
err := runner.SaveToFile(r.cfg.Output.TfstateFilePath, out.Additional)
err := runner.SaveToFile(r.cfg.Output.TfstateFilePath, out.Tfstate)
if err != nil {
return errors.Wrap(err, "while saving tfstate output")
}
Expand Down

0 comments on commit e54baef

Please sign in to comment.