Skip to content

Commit

Permalink
Fix race condition when undeploying OpenshiftDeployable
Browse files Browse the repository at this point in the history
  • Loading branch information
asmigala committed Jun 14, 2023
1 parent 4a6aeb6 commit 2851214
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ default long waitTime() {
}

default PodResource<Pod> servicePod() {
return servicePods().size() > 0 ? servicePods().get(0) : null;
var pods = servicePods();
return pods.size() > 0 ? pods.get(0) : null;
}

default List<PodResource<Pod>> servicePods() {
Expand Down

0 comments on commit 2851214

Please sign in to comment.