Skip to content

Commit bfefac8

Browse files
committed
fix: excluded from non-Unix systems 'Mamonsu System' screen
1 parent d8a8e96 commit bfefac8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

mamonsu/lib/zbx_template.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# -*- coding: utf-8 -*-
2+
import re
3+
import mamonsu.lib.platform as platform
24
from mamonsu.lib.const import Template
35
from mamonsu.lib.plugin import Plugin
4-
import re
56

67

78
class ZbxTemplate(object):
@@ -138,8 +139,9 @@ class ZbxTemplate(object):
138139
dashboard_page_instance,
139140
dashboard_page_wal,
140141
dashboard_page_locks,
141-
dashboard_page_transactions,
142-
dashboard_page_system]
142+
dashboard_page_transactions]
143+
if platform.UNIX:
144+
dashboard_pages.append(dashboard_page_system)
143145

144146
dashboard_widget_size_large = {'width': 500, 'height': 250}
145147
dashboard_widget_size_medium = {'width': 500, 'height': 150}

0 commit comments

Comments
 (0)