8000 fix: fixed Archiver plugin items generation · postgrespro/mamonsu@3fcb12d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3fcb12d

Browse files
committed
fix: fixed Archiver plugin items generation
1 parent dd40355 commit 3fcb12d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

mamonsu/plugins/pgsql/archive_command.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ def items(self, template, dashboard=False):
133133
result = ""
134134
for item in self.Items:
135135
result += template.item({
136-
"key": self.right_type(self.key, self.Items[0][0]),
137-
"name": "PostgreSQL Archiver: {0}".format(self.name.format(self.Items[0][1])),
136+
"key": self.right_type(self.key, item[0]),
137+
"name": "PostgreSQL Archiver: {0}".format(self.name.format(item[1])),
138138
"value_type": self.VALUE_TYPE.numeric_unsigned,
139139
"delay": self.plugin_config("interval"),
140-
"delta": self.Items[0][5],
141-
"units": self.Items[0][6]
140+
"delta": item[5],
141+
"units": item[6]
142142
})
143143
if not dashboard:
144144
return result

0 commit comments

Comments
 (0)
0