only set measurements if conditions are met

This commit is contained in:
m0duspwnens
2021-06-29 08:57:51 -04:00
parent 3f2f699449
commit bf8bba7b84

View File

@@ -13,7 +13,7 @@ influxdb:
downsample:
so_long_term:
resolution: 5m
{% if measurements is defined %}
{% if 'jq: error' not in measurements and 'Error response from daemon' not in measurements and 'parse error:' not in measurements and measurements|length > 0 %}
measurements:
{% for measurement in measurements.splitlines() %}
- {{ measurement }}