From 1664a447b184b33ff0da4f07501dd706fea9e450 Mon Sep 17 00:00:00 2001 From: Steve Milner Date: Thu, 16 Mar 2017 10:52:51 -0400 Subject: Add names to openshift_image_tag asserts --- roles/openshift_version/tasks/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'roles/openshift_version') diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml index 4603c5e54..c3d001bb4 100644 --- a/roles/openshift_version/tasks/main.yml +++ b/roles/openshift_version/tasks/main.yml @@ -35,7 +35,8 @@ # It also allows for optional trailing data which: # - must start with a dash # - may contain numbers, letters, dashes and dots. - - assert: + - name: Verify Origin openshift_image_tag is valid + assert: that: - "{{ openshift_image_tag|match('(^v?\\d+\\.\\d+\\.\\d+(-[\\w\\-\\.]*)?$)') }}" msg: "openshift_image_tag must be in the format v#.#.#[-optional.#]. Examples: v1.2.3, v3.5.1-alpha.1" @@ -47,7 +48,8 @@ # It also allows for optional trailing data which: # - must start with a dash # - may contain numbers - - assert: + - name: Verify Enterprise openshift_image_tag is valid + assert: that: - "{{ openshift_image_tag|match('(^v\\d+\\.\\d+[\\.\\d+]*(-\\d+)?$)') }}" msg: "openshift_image_tag must be in the format v#.#[.#[.#]]. Examples: v1.2, v3.4.1, v3.5.1.3, v1.2-1, v1.2.3-4" -- cgit v1.2.1