Skip to content

Commit

Permalink
Merge pull request #56 from scoheb/fix-new-state
Browse files Browse the repository at this point in the history
use Running to detect queued
  • Loading branch information
arilivigni authored Jun 20, 2018
2 parents 1f351cc + 6a0f182 commit 3fc40b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/build_new_app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued"
shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'"
register: oc_build_result
until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1)
until: oc_build_result.stdout.find(" Running ") != -1
retries: 6
delay: 10
ignore_errors: yes
Expand Down
2 changes: 1 addition & 1 deletion playbooks/roles/os_temps/tasks/setup_os_templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
- name: "{{ container_config_name }} :: Wait for {{ build_config_name_file.stdout }} to be queued :: FINAL ATTEMPT"
shell: "{{ oc_bin }} get builds | grep '{{ build_config_name_file.stdout }}'"
register: oc_build_result
until: (oc_build_result.stdout.find(" Pending ") == -1 or oc_build_result.stdout.find(" New ") == -1)
until: oc_build_result.stdout.find(" Running ") != -1
retries: 6
delay: 10
ignore_errors: yes
Expand Down

0 comments on commit 3fc40b8

Please sign in to comment.