Skip to content

Commit

Permalink
Merge pull request #176 from dirgim/fix-oc-bin-bug
Browse files Browse the repository at this point in the history
Fix the issue with the oc_exists check
  • Loading branch information
dirgim authored Jul 1, 2021
2 parents b85609f + e98d231 commit 9ac404d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playbooks/roles/os_temps/tasks/install_oc_bin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

- shell: echo "{{ oc_exists.stdout_lines[0] }}" | awk -F' v' '{print $2}' | awk -F'.' '{print $1 "." $2}'
register: oc_exists_version
when: oc_exists.stdout_lines is defined
when:
- oc_exists.stdout_lines is defined
- oc_exists.stdout_lines|length > 0

- shell: echo "{{ oc_version }}" | awk -F'[v.]' '{print $2 "." $3}'
register: oc_needed_version
Expand Down

0 comments on commit 9ac404d

Please sign in to comment.