Skip to content

Commit

Permalink
Revert "[dbm] fix flapping sqlserver_version (#17750)" (#18249)
Browse files Browse the repository at this point in the history
This reverts commit b880923.

(cherry picked from commit ecf7534)
  • Loading branch information
jmeunier28 authored and github-actions[bot] committed Aug 8, 2024
1 parent c9ec4d2 commit 98b6126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlserver/datadog_checks/sqlserver/sqlserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ def set_resource_tags(self):
)

def set_resolved_hostname(self):
# load static information cache
self.load_static_information()
if self._resolved_hostname is None:
if self._config.reported_hostname:
Expand Down Expand Up @@ -748,7 +749,6 @@ def _check_database_conns(self):

def check(self, _):
if self.do_check:
self.load_static_information()
# configure custom queries for the check
if self._query_manager is None:
# use QueryManager to process custom queries
Expand Down

0 comments on commit 98b6126

Please sign in to comment.