From dd9987c2bc022ff11fe1b1dffcdc8449bfbaac5b Mon Sep 17 00:00:00 2001 From: Chris Mague Date: Wed, 26 Sep 2018 08:19:37 -0700 Subject: [PATCH] pass the ofile --- plugin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.go b/plugin.go index 7a9760a..5866e35 100644 --- a/plugin.go +++ b/plugin.go @@ -274,6 +274,7 @@ func tfShow(config Config) TfCommand { "show", "-no-color", } + ofile := config.Difffile if config.Difffile != "" { args = append(args, config.Planfile) } @@ -283,7 +284,7 @@ func tfShow(config Config) TfCommand { args..., ) - return (TfCommand{Tfcmd: cmd}) + return (TfCommand{Tfcmd: cmd, Ofile: ofile}) }