Skip to content

Commit

Permalink
Fix TypeError when tags are undefined (#16496)
Browse files Browse the repository at this point in the history
* avoid exception

* ddev release changelog new
  • Loading branch information
keisku authored Dec 27, 2023
1 parent 1bf6702 commit 17bea45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions amazon_msk/changelog.d/16496.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix TypeError when tags are undefined
4 changes: 3 additions & 1 deletion amazon_msk/datadog_checks/amazon_msk/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ def parse_config(self):
self.log.info('No `region_name` was set, defaulting to `%s` based on the `cluster_arn`', self._region_name)

self._static_tags = (f'cluster_arn:{self.config.cluster_arn}', f'region_name:{self._region_name}')
self._service_check_tags = self._static_tags + self.config.tags
self._service_check_tags = self._static_tags
if self.config.tags:
self._service_check_tags += self.config.tags

self._endpoint_prefix = 'https' if self.config.tls_verify else 'http'
self._exporter_data = (
Expand Down

0 comments on commit 17bea45

Please sign in to comment.