Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with creating tags from conf in IIS #3635

Merged
merged 2 commits into from
Jan 12, 2018

Conversation

dixonscottr
Copy link
Contributor

Note: Please remember to review the Datadog Contribution Guidelines
if you have not yet done so.

What does this PR do?

Fixes an issue when pulling tags from a yaml config file with any integration that uses the PDHBaseCheck class

Motivation

A customer reached out with a report of the IIS check, which now collects metric via PDH, failing after upgrading to 5.21

Testing Guidelines

An overview on testing
is available in our contribution guidelines.

Additional Notes

Anything else we should know when reviewing?

@@ -33,7 +33,7 @@ def __init__(self, name, init_config, agentConfig, instances, counter_list):

cfg_tags = instance.get('tags')
if cfg_tags is not None:
tags = cfg_tags.join(",")
tags = (",").join(cfg_tags)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parentheses are not necessary:

",".join(cfg_tags)

@hush-hush hush-hush self-assigned this Jan 12, 2018
@dixonscottr dixonscottr merged commit b3d8458 into master Jan 12, 2018
@dixonscottr dixonscottr deleted the scottdixon/pdh_tags_fix branch January 12, 2018 22:00
@hush-hush hush-hush added this to the 5.22.0 milestone Feb 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants