Skip to content

Commit 9b873c9

Browse files
committed
Pass container config
1 parent 053ebde commit 9b873c9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/ui/run_logout.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
)
1515

1616
func RunLogout(parentCtx context.Context, rt runtime.Runtime, platformClient api.PlatformAPI, authToken string, forceFileKeyring bool) error {
17-
_, cancel := context.WithCancel(parentCtx)
17+
ctx, cancel := context.WithCancel(parentCtx)
1818
defer cancel()
1919

2020
app := NewApp("", "", "", cancel, withoutHeader())
@@ -34,7 +34,7 @@ func RunLogout(parentCtx context.Context, rt runtime.Runtime, platformClient api
3434
a := auth.New(sink, platformClient, tokenStorage, authToken, "", false)
3535
err = a.Logout()
3636
if err == nil && rt != nil {
37-
if running, runningErr := container.AnyRunning(parentCtx, rt); runningErr == nil && running {
37+
if running, runningErr := container.AnyRunning(ctx, rt); runningErr == nil && running {
3838
output.EmitNote(sink, "LocalStack is still running in the background")
3939
}
4040
}

0 commit comments

Comments
 (0)