Skip to content

Commit 9d84f32

Browse files
Merge pull request #47 from CodeMonkeyCybersecurity/claude/fix-missing-zap-otelzap-011CUzJZAToeAqXJJPg3iB24
fix: correct execute.Options field names and remove unused import in …
2 parents 67f250a + d2a585b commit 9d84f32

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

pkg/moni/ssl.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"context"
55
"fmt"
66
"os"
7-
"os/exec"
87
"path/filepath"
98
"strconv"
109
"strings"

pkg/moni/worker.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,8 @@ func restartContainers(rc *eos_io.RuntimeContext, workDir string) error {
497497
_, err := execute.Run(ctx, execute.Options{
498498
Command: "docker",
499499
Args: []string{"compose", "down"},
500-
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)
501-
Capture: false, // Show output to user
500+
Dir: workDir, // P1 FIX: Explicit working directory (thread-safe)
501+
Capture: false, // Show output to user
502502
})
503503

504504
if err != nil {
@@ -513,8 +513,8 @@ func restartContainers(rc *eos_io.RuntimeContext, workDir string) error {
513513
_, err = execute.Run(ctx, execute.Options{
514514
Command: "docker",
515515
Args: []string{"compose", "up", "-d"},
516-
WorkDir: workDir, // P1 FIX: Explicit working directory (thread-safe)
517-
Capture: false, // Show output to user
516+
Dir: workDir, // P1 FIX: Explicit working directory (thread-safe)
517+
Capture: false, // Show output to user
518518
})
519519

520520
if err != nil {

0 commit comments

Comments
 (0)