From 9c19cfdc6f05953e0dbab4558a4189ab4f31e12a Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Tue, 15 Oct 2019 00:45:05 -0700 Subject: [PATCH] provisioner/shell: fix dropped error --- provisioner/shell/provisioner.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/provisioner/shell/provisioner.go b/provisioner/shell/provisioner.go index 168c1c0e4..b022c94fc 100644 --- a/provisioner/shell/provisioner.go +++ b/provisioner/shell/provisioner.go @@ -266,6 +266,9 @@ func (p *Provisioner) Provision(ctx context.Context, ui packer.Ui, comm packer.C p.config.envVarFile = remoteVFName return nil }) + if err != nil { + return err + } } // Create environment variables to set before executing the command