collectd-formula icon indicating copy to clipboard operation
collectd-formula copied to clipboard

fixed object dump in collectd.python

Open Logioniz opened this issue 6 years ago • 0 comments

Wrong dump python object with quotes (need double quotes)

Actual behavior

Pillar:

collectd:
  plugins:
    python:
      modules:
        elasticsearch:
          variables:
            AdditionalMetrics: [""]

Generated file:

    <Module "elasticsearch">
        AdditionalMetrics ['']
        ...
    </Module>

Error

collectd[1581]: configfile: Cannot read file `/etc/collectd/plugins/python.conf'.
systemd[1]: Unit collectd.service entered failed state.
collectd[1581]: ['']

Expected behavior

    <Module "elasticsearch">
        AdditionalMetrics [""]
        ...
    </Module>

Logioniz avatar Apr 13 '18 10:04 Logioniz