summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell Teague <rteague@redhat.com>2017-10-26 17:17:51 -0400
committerRussell Teague <rteague@redhat.com>2017-10-26 17:17:51 -0400
commit08585263678873393b26195069bd587d9bbf6ec9 (patch)
tree0645733af567a7b6bbd24e9aacad1f8f446706a7
parent23a42dccd767e2fed2b5ff3f5e205fc79025a56d (diff)
downloadopenshift-08585263678873393b26195069bd587d9bbf6ec9.tar.gz
openshift-08585263678873393b26195069bd587d9bbf6ec9.tar.bz2
openshift-08585263678873393b26195069bd587d9bbf6ec9.tar.xz
openshift-08585263678873393b26195069bd587d9bbf6ec9.zip
Correct openshift_release regular expression
Match only versions like: 3.7 3.7.0 3.7.0.0 Avoids matches like: 3.7.0.0.0.0
-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.