Browse Source

Fix grains generation when linux_netlink.ls is not available

Change-Id: Id4b0b405872457bd8b20f450e4031d6808d3cf59
pull/108/head
Filip Pytloun 7 years ago
parent
commit
ea11327afe
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      linux/meta/collectd.yml

+ 2
- 0
linux/meta/collectd.yml View File

@@ -3,10 +3,12 @@ local_plugin:
plugin: netlink
template: linux/files/collectd_netlink.conf
ignore_selected: false
{%- if 'linux_netlink.ls' in salt.keys() %}
interfaces:
{%- for interface_name in salt['linux_netlink.ls']() %}
- {{ interface_name }}
{%- endfor %}
{%- endif %}
linux_system_cpu:
plugin: cpu
linux_system_entropy:

Loading…
Cancel
Save