Skip to content

Commit

Permalink
loadgen: fix the error handling when failed to get the ws infomation.
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k authored and roboquat committed Jun 13, 2022
1 parent 0c5932b commit 85c66e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dev/loadgen/pkg/loadgen/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ func (w *WsmanExecutor) StopAll(ctx context.Context) error {

for {
resp, err := w.C.GetWorkspaces(ctx, &listReq)
if len(resp.Status) == 0 {
break
}

if err != nil {
log.Warnf("could not get workspaces: %v", err)
} else {
if len(resp.GetStatus()) == 0 {
break
}
}

select {
Expand Down

0 comments on commit 85c66e3

Please sign in to comment.