From 85ec0154bcc24803edb3093edac26b7a88a6b74e Mon Sep 17 00:00:00 2001 From: Benjamin Bennett Date: Mon, 18 Dec 2023 16:46:15 +0000 Subject: [PATCH] Updating to use renamed struct (#426) --- tfexec/options.go | 4 ++-- tfexec/show.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tfexec/options.go b/tfexec/options.go index 7c2f6fda..d783027a 100644 --- a/tfexec/options.go +++ b/tfexec/options.go @@ -248,8 +248,8 @@ type UseJSONNumberOption struct { } // JSONNumber determines how numerical values are handled during JSON decoding. -func JSONNumber(useJSONNumber bool) *UseJSONNumber { - return &UseJSONNumber{useJSONNumber} +func JSONNumber(useJSONNumber bool) *UseJSONNumberOption { + return &UseJSONNumberOption{useJSONNumber} } type PlatformOption struct { diff --git a/tfexec/show.go b/tfexec/show.go index f7548e5e..5854af1d 100644 --- a/tfexec/show.go +++ b/tfexec/show.go @@ -14,7 +14,7 @@ import ( type showConfig struct { reattachInfo ReattachInfo - jsonNumber *UseJSONNumber + jsonNumber *UseJSONNumberOption } var defaultShowOptions = showConfig{} @@ -27,7 +27,7 @@ func (opt *ReattachOption) configureShow(conf *showConfig) { conf.reattachInfo = opt.info } -func (opt *UseJSONNumber) configureShow(conf *showConfig) { +func (opt *UseJSONNumberOption) configureShow(conf *showConfig) { conf.jsonNumber = opt }