Skip to content

Commit 9e3dff6

Browse files
authored
Merge pull request #26 from 10gen/TSPROJ-7983
changed file name extension
2 parents f313e60 + e50c8b9 commit 9e3dff6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mongosh/mongosh.go

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ package mongosh
1616

1717
import (
1818
"bytes"
19+
"dcrcli/dcroutdir"
20+
"dcrcli/mongocredentials"
1921
"fmt"
2022
"os"
2123
"os/exec"
22-
23-
"dcrcli/dcroutdir"
24-
"dcrcli/mongocredentials"
2524
)
2625

2726
func binPath() string {
@@ -58,7 +57,7 @@ type CaptureGetMongoData struct {
5857
}
5958

6059
func (cgm *CaptureGetMongoData) setOutputDirPath() {
61-
cgm.FilePathOnDisk = cgm.Outputdir.Path() + "/getMongoData.out"
60+
cgm.FilePathOnDisk = cgm.Outputdir.Path() + "/getMongoData.json"
6261
}
6362

6463
func (cgm *CaptureGetMongoData) detectMongoShellType() error {
@@ -111,7 +110,7 @@ func (cgm *CaptureGetMongoData) execGetMongoDataWithEval() error {
111110
cmd.Stdout = cgm.Getparsedjsonoutput
112111
cmd.Stderr = cgm.Getparsedjsonoutput
113112

114-
//fmt.Println("Running the cmdDotRun")
113+
// fmt.Println("Running the cmdDotRun")
115114
return printErrorIfNotNil(
116115
cmd.Run(),
117116
"in execGetMongoDataWithEval() data collection script execution",
@@ -120,7 +119,7 @@ func (cgm *CaptureGetMongoData) execGetMongoDataWithEval() error {
120119

121120
func (cgm *CaptureGetMongoData) execMongoWellnessCheckerWithEval() error {
122121
var cmd *exec.Cmd
123-
//fmt.Println(cgm.S.Mongouri)
122+
// fmt.Println(cgm.S.Mongouri)
124123
if cgm.S.Username == "" {
125124
cmd = exec.Command(
126125
"mongosh",

0 commit comments

Comments
 (0)