Use version filter instead of version_compare

version_compare is deperecated

Change-Id: I19e96f37e9ab0e489ab8e855e3fae7e25e4f837b
This commit is contained in:
Sai Sindhur Malleni 2019-11-15 12:58:08 -05:00
parent ac140154da
commit 445e67939c

View File

@ -473,7 +473,7 @@ PreCacheChain "PreCache"
# Tail httpd request time
{%if apache_controller_collectd_request_time %}
{% if osp_version | version_compare('12.0.0', '>=') and osp_version | version_compare('14.0.0', '<') %}
{% if osp_version is version ('12.0.0', '>=') and osp_version is version ('14.0.0', '<') %}
<File "/var/log/containers/httpd/gnocchi-api/gnocchi_wsgi_access.log">
{% else %}
<File "/var/log/httpd/gnocchi_wsgi_access.log">