File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed
Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -299,16 +299,8 @@ function copyOutput() {
299299 ${K8S_CLI_BIN} cp -n " $namespace " collector:output ./output
300300 flowFile=$( find ./output -name " *txt" | sort | tail -1)
301301 if [[ -n " $flowFile " ]] ; then
302- jsonFile=$( buildJSON " $flowFile " )
303- if [[ -f ` which jq` ]]; then
304- jq empty < " $jsonFile "
305- if [[ $? -eq 1 ]] ; then
306- rm " $jsonFile "
307- echo " Flow file conversion to JSON failed, please use the txt file: $flowFile "
308- else
309- rm " $flowFile "
310- fi
311- fi
302+ buildJSON " $flowFile "
303+ rm " $flowFile "
312304 fi
313305}
314306
@@ -324,7 +316,6 @@ function buildJSON() {
324316 sed ' $d' " $file " | sed ' $ s/.$//'
325317 echo " ]"
326318 } >> " $UPDATED_JSON_FILE "
327- echo " $UPDATED_JSON_FILE "
328319}
329320
330321function deleteServiceMonitor() {
You can’t perform that action at this time.
0 commit comments