Remove hard-coded url from python.d puppet chart plugin (#18064)
Thomas Hufschmidt committed
Jul 3, 2024 at 16:18 UTC
9a9071f4ebf143e7c4f7bd6afd8b0b49e7ff4a64
1 file changed
+1
-1
src/collectors/python.d.plugin/puppet/puppet.chart.py
+1
-1
@@ -75,7 +75,7 @@ class Service(UrlService):
75
UrlService.__init__(self, configuration=configuration, name=name)
76
self.order = ORDER
77
self.definitions = CHARTS
78
- self.url = 'https://{0}:8140'.format(socket.getfqdn())
78
+ self.url = self.configuration.get('url', 'https://{0}:8140'.format(socket.getfqdn()))
79
80
def _get_data(self):
81
# NOTE: there are several ways to retrieve data