Skip to content

Commit

Permalink
fmt output.tf in bootstrapped module (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking authored Jul 16, 2018
1 parent fec77d8 commit b786fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,11 +299,10 @@ func applyModule(fs afero.Fs, path, mod string, box packr.Box) error {
return errors.Wrap(e, "unable to apply template for outputs.tf")
}

// TODO
// e = fmtHcl(fs, filepath.Join(path, "outputs.tf"))
// if e != nil {
// return errors.Wrap(e, "unable to format outputs.tf")
// }
e = fmtHcl(fs, filepath.Join(path, "outputs.tf"))
if e != nil {
return errors.Wrap(e, "unable to format outputs.tf")
}

return nil
}
Expand Down
1 change: 0 additions & 1 deletion apply/apply_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ func TestApplyModule(t *testing.T) {
output "foo" {
value = "${module.test-module.foo}"
}
`
assert.Equal(t, expected, string(r))
}
Expand Down

0 comments on commit b786fd8

Please sign in to comment.