Fix output mode for extension checks
Fixes
When running `linkerd check -o json`, the output format is not correctly used when rendering the extension check output.  This causes non-json results to appear in the json output.
We correctly use the specified output format when rendering extension checks.
@@ -148,7 +148,7 @@ func RunExtensionsChecks(wout io.Writer, werr io.Writer, extensions []string, fl
}
// add a new line to space out each check output
fmt.Fprintln(wout)
- extensionSuccess := RunChecks(wout, werr, results, fmt.Sprintf("extension-%s", output))
+ extensionSuccess := RunChecks(wout, werr, results, output)
if !extensionSuccess {
success = false
}
