Skip to content

Commit

Permalink
Add debug log line for external tags (#18774)
Browse files Browse the repository at this point in the history
* Add debug log line for external tags

* Add changelog
  • Loading branch information
sarah-witt authored Oct 7, 2024
1 parent 96c2b3d commit 979e3f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions vsphere/changelog.d/18774.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add debug log line for host tags.
1 change: 1 addition & 0 deletions vsphere/datadog_checks/vsphere/vsphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def submit_external_host_tags(self):
mor_tags = mor_props['tags'] + mor_tags
tags = [t for t in mor_tags if t.split(':')[0] not in self._config.excluded_host_tags]
tags.extend(self._config.base_tags)
self.log.debug("Submitting host tags for %s: %s", hostname, tags)
external_host_tags.append((hostname, {self.__NAMESPACE__: tags}))

if external_host_tags:
Expand Down

0 comments on commit 979e3f3

Please sign in to comment.