Skip to content

Commit 74ab85d

Browse files
author
Ed Smith
committed
fix loop if user goes back on selectTask when there are no services
1 parent 70d8950 commit 74ab85d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

internal/exec.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ func (e *ExecCommand) getTask() {
207207
}
208208

209209
if *selection.TaskArn == backOpt {
210+
if e.service == "" {
211+
e.cmd <- "getCluster"
212+
return
213+
}
210214
e.cmd <- "getService"
211215
return
212216
}

0 commit comments

Comments
 (0)