diff --git a/cli/commands/render-json/action.go b/cli/commands/render-json/action.go index 001817cb9b..b0404f6bf9 100644 --- a/cli/commands/render-json/action.go +++ b/cli/commands/render-json/action.go @@ -49,7 +49,7 @@ func runRenderJSON(ctx context.Context, opts *options.TerragruntOptions, cfg *co var terragruntConfigCty cty.Value - if opts.RenderJSONithMetadata { + if opts.RenderJSONWithMetadata { cty, err := config.TerragruntConfigAsCtyWithMetadata(cfg) if err != nil { return err diff --git a/cli/commands/render-json/command.go b/cli/commands/render-json/command.go index 1476f40252..09d207fdc1 100644 --- a/cli/commands/render-json/command.go +++ b/cli/commands/render-json/command.go @@ -23,7 +23,7 @@ func NewFlags(opts *options.TerragruntOptions) cli.Flags { }, &cli.BoolFlag{ Name: FlagNameWithMetadata, - Destination: &opts.RenderJSONithMetadata, + Destination: &opts.RenderJSONWithMetadata, Usage: "Add metadata to the rendered JSON file.", }, &cli.BoolFlag{ diff --git a/options/options.go b/options/options.go index fc37cbef91..be9d054b2d 100644 --- a/options/options.go +++ b/options/options.go @@ -281,7 +281,7 @@ type TerragruntOptions struct { UsePartialParseConfigCache bool // Include fields metadata in render-json - RenderJSONithMetadata bool + RenderJSONWithMetadata bool // Disable TF output formatting ForwardTFStdout bool