Skip to content

Commit

Permalink
TfLint arbitrary error due to invalid arguments (#35)
Browse files Browse the repository at this point in the history
Fixing an arbitrary error while running tflnit from Lambda.
[ERR] yamux: Failed to write header: write unix @->/tmp/pluginRANDOM: write: broken pipe
  • Loading branch information
sefi-infralight authored Mar 19, 2022
1 parent 444a77b commit 916a1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/api/tflint.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ func TFLint(in []byte) ([]byte, error) {
}

defer os.Remove(path) // nolint: errcheck
return exec.Command(TFLintExec, fmt.Sprintf("--config=%s", TFLintConfig), "--enable-plugin=aws", "--enable-plugin=azurerm", "--enable-plugin=google", path, "--no-color").CombinedOutput()
return exec.Command(TFLintExec, path, "--no-color", "--force").CombinedOutput()
}

0 comments on commit 916a1ba

Please sign in to comment.