mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #48931 from allencloud/remove-duplicated-word-file-in-error
Automatic merge from submit-queue (batch tested with PRs 48572, 48838, 48931, 48783, 47090) remove duplicated word file in error Signed-off-by: allencloud <allen.sun@daocloud.io> **What this PR does / why we need it**: remove duplicated word file in error **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # NONE **Special notes for your reviewer**: NONE **Release note**: ```release-note NONE ```
This commit is contained in:
commit
3bb2d12e80
@ -91,7 +91,7 @@ func GetStandardPrinter(outputOpts *OutputOptions, noHeaders bool, mapper meta.R
|
||||
|
||||
case "jsonpath-file":
|
||||
if len(formatArgument) == 0 {
|
||||
return nil, fmt.Errorf("jsonpath file format specified but no template file file given")
|
||||
return nil, fmt.Errorf("jsonpath file format specified but no template file given")
|
||||
}
|
||||
data, err := ioutil.ReadFile(formatArgument)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user