apache plugin: minor fixes
Ilya committed
Jun 13, 2017 at 09:50 UTC
a39cdc48286da71a9f895ff55d73decaae2dd90c
1 file changed
+3
-4
python.d/apache.chart.py
+3
-4
@@ -98,10 +98,9 @@ class Service(UrlService):
98
if 'idle_servers' in self._data_from_check:
99
self.__module__ = 'lighttpd'
100
for chart in self.definitions:
101
- self.definitions[chart]['options'][1] = self.definitions[chart]['options'][1].replace('apache',
102
- 'lighttpd')
103
- self.definitions[chart]['options'][4] = self.definitions[chart]['options'][4].replace('apache',
104
- 'lighttpd')
101
+ opts = self.definitions[chart]['options']
102
+ opts[1] = opts[1].replace('apache', 'lighttpd')
103
+ opts[4] = opts[4].replace('apache', 'lighttpd')
104
return True
105
return False
106