diff --git a/system-x/common/src/main/java/software/tnb/common/deployment/OpenshiftDeployable.java b/system-x/common/src/main/java/software/tnb/common/deployment/OpenshiftDeployable.java index 2d1401285..b4ef31be1 100644 --- a/system-x/common/src/main/java/software/tnb/common/deployment/OpenshiftDeployable.java +++ b/system-x/common/src/main/java/software/tnb/common/deployment/OpenshiftDeployable.java @@ -30,7 +30,8 @@ default long waitTime() { } default PodResource servicePod() { - return servicePods().size() > 0 ? servicePods().get(0) : null; + var pods = servicePods(); + return pods.size() > 0 ? pods.get(0) : null; } default List> servicePods() {