diff --git a/roles/collectd/postgres/templates/collectd-postgres.sh b/roles/collectd/postgres/templates/collectd-postgres.sh index 8890a8b45f..330903faf2 100644 --- a/roles/collectd/postgres/templates/collectd-postgres.sh +++ b/roles/collectd/postgres/templates/collectd-postgres.sh @@ -14,7 +14,7 @@ done while [ $? -eq 0 ] ; do time="$(date +%s)" - for db in {{ databases.join(' ') }} + for db in {{ ' '.join(databases) }} do echo "PUTVAL $host/pg_conns/pg_conns-$db $time:$(ps auxwww | grep -c $db)" done