summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-10-27 11:18:59 -0400
committerGitHub <noreply@github.com>2017-10-27 11:18:59 -0400
commitc6c0f5f6f859cec1bafbe27c5fd78067ffe31abd (patch)
treed292c3a502f72a94e61578493fbeb05e9ef17381
parent5b6b31e36f7be9593206774d06821c1164e2bd0b (diff)
parent08585263678873393b26195069bd587d9bbf6ec9 (diff)
downloadopenshift-c6c0f5f6f859cec1bafbe27c5fd78067ffe31abd.tar.gz
openshift-c6c0f5f6f859cec1bafbe27c5fd78067ffe31abd.tar.bz2
openshift-c6c0f5f6f859cec1bafbe27c5fd78067ffe31abd.tar.xz
openshift-c6c0f5f6f859cec1bafbe27c5fd78067ffe31abd.zip
Merge pull request #5904 from mtnbikenc/fix-openshift_release
Correct openshift_release regular expression
-rw-r--r--roles/openshift_sanitize_inventory/tasks/main.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_sanitize_inventory/tasks/main.yml b/roles/openshift_sanitize_inventory/tasks/main.yml
index 5dccc9faf..a6c168bc7 100644
--- a/roles/openshift_sanitize_inventory/tasks/main.yml
+++ b/roles/openshift_sanitize_inventory/tasks/main.yml
@@ -47,7 +47,7 @@
- name: Abort when openshift_release is invalid
when:
- openshift_release is defined
- - not openshift_release | match('\d+(\.\d+){1,3}$')
+ - not openshift_release | match('^\d+(\.\d+){1,3}$')
fail:
msg: |-
openshift_release is "{{ openshift_release }}" which is not a valid version string.