From 08585263678873393b26195069bd587d9bbf6ec9 Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Thu, 26 Oct 2017 17:17:51 -0400 Subject: 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 --- roles/openshift_sanitize_inventory/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3