Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
OSFUSE-317 Fix "Waiting for container:sti-build." bug
Browse files Browse the repository at this point in the history
  • Loading branch information
chirino committed Oct 7, 2016
1 parent c42dba9 commit 2d90cd4
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -60,7 +60,10 @@ public Boolean call() throws Exception {
result = false;
PodStatus podStatus = pod.getStatus();
int restartCount = 0;
if (podStatus != null) {

// Skip waiting for "Succeeded" pods, since could see pods like s2i builds
// that are done. see: OSFUSE-317
if (podStatus != null && !"Succeeded".equals(podStatus.getPhase()) ) {
List<ContainerStatus> containerStatuses = podStatus.getContainerStatuses();
for (ContainerStatus containerStatus : containerStatuses) {
if (restartCount == 0) {
Expand Down

0 comments on commit 2d90cd4

Please sign in to comment.