@cryptotaxi247 / netdata-1 / commits / b5a15d644

don't re-create a dimension if it is already created

lgz committed Oct 19, 2017 at 11:05 UTC b5a15d6444907ce1d713764b1e7f60bc200935ad
1 file changed +1 -1
python.d/python_modules/bases/charts.py
+1 -1
@@ -184,7 +184,7 @@ class Chart:
184 if dim.params['id'] in self:
185 raise DuplicateItemError("'{dimension}' already in '{chart}' dimensions".format(dimension=dim.params['id'],
186 chart=self.name))
187 - self.dimensions.append(Dimension(dimension))
187 + self.dimensions.append(dim)
188 return dim
189
190 def add_dimension_and_push_chart(self, dimension):