Skip to content

Commit

Permalink
fix: adresse the check() linter warning
Browse files Browse the repository at this point in the history
check warning: The instance argument in the `check()` function is
going to be deprecated in Agent 6. Please use `self.instance` instead.
  • Loading branch information
clamoriniere committed Nov 8, 2021
1 parent 6d8b42d commit f68318a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __init__(self, name, init_config, instances=None):

def check(self, instance):
if self.kube_apiserver_config is None:
self.kube_apiserver_config = self.get_scraper_config(instance)
self.kube_apiserver_config = self.get_scraper_config(self.instance)

if not self.kube_apiserver_config['metrics_mapper']:
url = self.kube_apiserver_config['prometheus_url']
Expand Down

0 comments on commit f68318a

Please sign in to comment.