File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,9 @@ import (
12
12
13
13
// Parse extracts Terraform variables from source-code.
14
14
func (* terraform ) Parse (request * proto.Parse_Request , stream proto.DRPCProvisioner_ParseStream ) error {
15
- defer stream .CloseSend ()
15
+ defer func () {
16
+ _ = stream .CloseSend ()
17
+ }()
16
18
17
19
module , diags := tfconfig .LoadModule (request .Directory )
18
20
if diags .HasErrors () {
Original file line number Diff line number Diff line change @@ -17,7 +17,10 @@ import (
17
17
18
18
// Provision executes `terraform apply`.
19
19
func (t * terraform ) Provision (request * proto.Provision_Request , stream proto.DRPCProvisioner_ProvisionStream ) error {
20
- // defer stream.CloseSend()
20
+ defer func () {
21
+ _ = stream .CloseSend ()
22
+ }()
23
+
21
24
ctx := stream .Context ()
22
25
statefilePath := filepath .Join (request .Directory , "terraform.tfstate" )
23
26
if len (request .State ) > 0 {
You can’t perform that action at this time.
0 commit comments