From f4644e808a89428056c9ed84a4100d698c6e860d Mon Sep 17 00:00:00 2001 From: Valters Jansons Date: Thu, 30 Mar 2017 14:36:41 +0300 Subject: [PATCH] Update `collectd::plugin::python::module` README The module definitions now need arrays for configurations. README was updated to show that for defining multiple modules, but the single-module definition was forgotten. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 41327eff0..9b1856da6 100644 --- a/README.md +++ b/README.md @@ -1369,9 +1369,9 @@ Or define single module: ```puppet collectd::plugin::python::module {'zk-collectd': script_source => 'puppet:///modules/myorg/zk-collectd.py', - config => { - 'Hosts' => "localhost:2181" - } + config => [ + {'Hosts' => "localhost:2181"} + ] } ``` @@ -1383,9 +1383,9 @@ are included in `collectd::plugin::python` variable `modulepaths`. If no collectd::plugin::python::module {'my-module': modulepath => '/var/share/collectd', script_source => 'puppet:///modules/myorg/my-module.py', - config => { - 'Key' => "value" - } + config => [ + {'Key' => "value"} + ] } ```