Skip to content

Commit

Permalink
list running hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Nov 21, 2024
1 parent 0246ca6 commit e29d6aa
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions cmd/attach.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ func NewAttachCmd(scenarioOrchestrator *scenario_orchestrator.ScenarioOrchestrat
if err != nil {
return err
}

runningScenarios, err := (*scenarioOrchestrator).ListRunningScenarios(nil)
ctx, err := (*scenarioOrchestrator).Connect(*socket)
if err != nil {
return err
}
runningScenarios, err := (*scenarioOrchestrator).ListRunningScenarios(ctx)
if err != nil {
return err
}
Expand All @@ -71,7 +74,7 @@ func NewAttachCmd(scenarioOrchestrator *scenario_orchestrator.ScenarioOrchestrat
return err
}
scenario := (*runningScenarios)[scenarioId]
ctx, err := (*scenarioOrchestrator).Connect(*socket)
ctx, err = (*scenarioOrchestrator).Connect(*socket)
if err != nil {
return err
}
Expand Down

0 comments on commit e29d6aa

Please sign in to comment.