@cryptotaxi247 / netdata-1 / commits / 711156c6a

Copy CHARTS and ORDER instead of just assigning them.

Austin S. Hemmelgarn committed May 2, 2018 at 11:15 UTC 711156c6a12f7e0697911e1bda0dfc3bd2924a0d
1 file changed +4 -2
python.d/unbound.chart.py
+4 -2
@@ -4,6 +4,8 @@
4
5 import os
6
7 +from copy import deepcopy
8 +
9 from bases.FrameworkServices.SocketService import SocketService
10 from bases.loaders import YamlOrderedLoader
11
@@ -95,8 +97,8 @@ class Service(SocketService):
97 SocketService.__init__(self, configuration, name)
98 self.ext = self.configuration.get('extended', None)
99 self.ubconf = self.configuration.get('ubconf', None)
98 - self.order = ORDER
99 - self.definitions = CHARTS
100 + self.order = deepcopy(ORDER)
101 + self.definitions = deepcopy(CHARTS)
102 self.request = 'UBCT1 stats\n'
103 self._parse_config()
104 self._auto_config()