File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,11 @@ package mongosh
16
16
17
17
import (
18
18
"bytes"
19
+ "dcrcli/dcroutdir"
20
+ "dcrcli/mongocredentials"
19
21
"fmt"
20
22
"os"
21
23
"os/exec"
22
-
23
- "dcrcli/dcroutdir"
24
- "dcrcli/mongocredentials"
25
24
)
26
25
27
26
func binPath () string {
@@ -58,7 +57,7 @@ type CaptureGetMongoData struct {
58
57
}
59
58
60
59
func (cgm * CaptureGetMongoData ) setOutputDirPath () {
61
- cgm .FilePathOnDisk = cgm .Outputdir .Path () + "/getMongoData.out "
60
+ cgm .FilePathOnDisk = cgm .Outputdir .Path () + "/getMongoData.json "
62
61
}
63
62
64
63
func (cgm * CaptureGetMongoData ) detectMongoShellType () error {
@@ -111,7 +110,7 @@ func (cgm *CaptureGetMongoData) execGetMongoDataWithEval() error {
111
110
cmd .Stdout = cgm .Getparsedjsonoutput
112
111
cmd .Stderr = cgm .Getparsedjsonoutput
113
112
114
- //fmt.Println("Running the cmdDotRun")
113
+ // fmt.Println("Running the cmdDotRun")
115
114
return printErrorIfNotNil (
116
115
cmd .Run (),
117
116
"in execGetMongoDataWithEval() data collection script execution" ,
@@ -120,7 +119,7 @@ func (cgm *CaptureGetMongoData) execGetMongoDataWithEval() error {
120
119
121
120
func (cgm * CaptureGetMongoData ) execMongoWellnessCheckerWithEval () error {
122
121
var cmd * exec.Cmd
123
- //fmt.Println(cgm.S.Mongouri)
122
+ // fmt.Println(cgm.S.Mongouri)
124
123
if cgm .S .Username == "" {
125
124
cmd = exec .Command (
126
125
"mongosh" ,
You can’t perform that action at this time.
0 commit comments