diff options
author | Devan Goodwin <dgoodwin@redhat.com> | 2016-07-11 10:08:14 -0300 |
---|---|---|
committer | Devan Goodwin <dgoodwin@redhat.com> | 2016-07-11 10:23:23 -0300 |
commit | 02d4470e1ff26350a2e02567246627aaf09455eb (patch) | |
tree | 0db15465c560ad1d94685a7ffccfceaf5ec9172e /roles/openshift_version | |
parent | 2a8b144073f474bf966c6ab92329442a1a526bde (diff) | |
download | openshift-02d4470e1ff26350a2e02567246627aaf09455eb.tar.gz openshift-02d4470e1ff26350a2e02567246627aaf09455eb.tar.bz2 openshift-02d4470e1ff26350a2e02567246627aaf09455eb.tar.xz openshift-02d4470e1ff26350a2e02567246627aaf09455eb.zip |
Use proper startswith.
Diffstat (limited to 'roles/openshift_version')
-rw-r--r-- | roles/openshift_version/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/openshift_version/tasks/main.yml b/roles/openshift_version/tasks/main.yml index b4f3fb36d..2d96d2765 100644 --- a/roles/openshift_version/tasks/main.yml +++ b/roles/openshift_version/tasks/main.yml @@ -73,4 +73,4 @@ # the rpm version we looked up matches the release requested and error out if not. - fail: msg: "Detected openshift version {{ openshift_version }} does not match requested openshift_release {{ openshift_release }}. You may need to adjust your yum repositories or specify an exact openshift_pkg_version." - when: not is_containerized | bool and openshift_release is defined and not openshift_version | oo_startswith(openshift_release) | bool + when: not is_containerized | bool and openshift_release is defined and not openshift_version.startswith(openshift_release) | bool |