Merge pull request #54 from slimakcz/fix/for-salt-2017.7.0
change cmd.run to cmd.shell
diff --git a/collectd/files/default_collectd b/collectd/files/default_collectd
index c06e4bb..3c8dcb6 100644
--- a/collectd/files/default_collectd
+++ b/collectd/files/default_collectd
@@ -14,7 +14,7 @@
# default: 0
ENABLE_COREFILES=0
{%- set java_ld_library_path = '' %}
-{%- set java_lib = salt['cmd.run']('type java >/dev/null 2>&1 && find /usr/lib/jvm -name libjvm.so -type f') %}
+{%- set java_lib = salt['cmd.shell']('type java >/dev/null 2>&1 && find /usr/lib/jvm -name libjvm.so -type f') %}
{%- if java_lib|length > 0 %}
{%- set java_path = '/'.join(java_lib.split('/')[:-1]) %}
{%- set java_ld_library_path = 'export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:' ~ java_path %}