Skip to content

Commit

Permalink
fix check.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HadhemiDD committed Jun 19, 2023
1 parent 4f36699 commit 247cd6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions envoy/datadog_checks/envoy/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ def _collect_metadata(self):
if not self.base_url:
self.log.debug("Skipping server info collection due to malformed url: %s", self.base_url)
return

# From http://domain/thing/stats to http://domain/thing/server_info
if not self.collect_server_info:
self.log.debug("Skipping server info collection as it is disabled, collect_server_info")
return

server_info_url = urljoin(self.base_url, 'server_info')
raw_version = _get_server_info(server_info_url, self.log, self.http)

Expand Down

0 comments on commit 247cd6c

Please sign in to comment.