minor, tunne compatibility during influxdb.query call
Change-Id: I66219a6c507ca2e22cb909ee6ab3cae013659f36
diff --git a/influxdb/query.sls b/influxdb/query.sls
index a24e2fa..596befb 100644
--- a/influxdb/query.sls
+++ b/influxdb/query.sls
@@ -18,16 +18,13 @@
influxdb.query:
- database: {{ db_name }}
- query: {{ query }}
- {%- if grains.saltversion >= "2017.7" %}
- - client_args:
- host: {{ mconf.host }}
- port: {{ mconf.port }}
- {%- if qr.user is defined OR mconf.password is defined %}
- user: {{ qr.get('user', mconf.user) }}
- {%- endif %}
- {%- if qr.password is defined OR mconf.password is defined %}
- password: {{ qr.get('password', mconf.password) }}
- {%- endif %}
+ - host: {{ mconf.host }}
+ - port: {{ mconf.port }}
+ {%- if qr.user is defined OR mconf.password is defined %}
+ - user: {{ qr.get('user', mconf.user) }}
+ {%- endif %}
+ {%- if qr.password is defined OR mconf.password is defined %}
+ - password: {{ qr.get('password', mconf.password) }}
{%- endif %}
{%- endfor %}
{%- endfor %}