summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorSteve Milner <smilner@redhat.com>2017-03-16 10:52:51 -0400
committerSteve Milner <smilner@redhat.com>2017-04-03 09:27:57 -0400
commit1664a447b184b33ff0da4f07501dd706fea9e450 (patch)
tree667d6d64826a34b7107ac7dc6733e0a5a1b19799 /roles
parent53f7a846fc43b7a62986d16c84939e7da22d530c (diff)
downloadopenshift-1664a447b184b33ff0da4f07501dd706fea9e450.tar.gz
openshift-1664a447b184b33ff0da4f07501dd706fea9e450.tar.bz2
openshift-1664a447b184b33ff0da4f07501dd706fea9e450.tar.xz
openshift-1664a447b184b33ff0da4f07501dd706fea9e450.zip
Add names to openshift_image_tag asserts
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_version/tasks/main.yml6
1 files changed, 4 insertions, 2 deletions
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"