Skip to content

Commit

Permalink
Merge pull request #65 from oybed/regex-fix
Browse files Browse the repository at this point in the history
Fixing regex list v.s. string
  • Loading branch information
tylerauerbeck authored Sep 21, 2018
2 parents 02e9116 + 7ee7aca commit 5dee38a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/openshift-applier/tasks/pre-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

- name: "Filter out just the oc version number"
set_fact:
oc_version: "{{ oc_vers_check.stdout | regex_search('^oc.+v([\\d.]+).*', '\\1') }}"
oc_version: "{{ (oc_vers_check.stdout | regex_search('^oc.+v([\\d.]+).*', '\\1'))[0] }}"

- name: "Do *not* use the 'ignore_unknown_parameters' flag if 'oc' version is older than 3.7"
set_fact:
Expand Down

0 comments on commit 5dee38a

Please sign in to comment.