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

[IIS] Deal with BytesTransfered vs BytesTransferred 2008sp2 typo #2379

Merged
merged 1 commit into from
Mar 28, 2016

Conversation

truthbk
Copy link
Member

@truthbk truthbk commented Mar 23, 2016

This PR intends to address the crazy typo made in windows 2008 IIS (not sure if it's IIS or windows version specific).

Also updated the tests to cover this scenario.

@truthbk truthbk changed the title [IIS] Deal with BytesTransfered vs BytesTransferred 2008 typo [IIS] Deal with BytesTransfered vs BytesTransferred 2008sp2 typo Mar 23, 2016
@olivielpeau olivielpeau added this to the 5.7.3 milestone Mar 23, 2016
@olivielpeau olivielpeau self-assigned this Mar 23, 2016
@@ -87,6 +95,10 @@ def check(self, instance):
filters=filters, instance_tags=instance_tags
)
)
except pythoncom.com_error:
Copy link
Member

Choose a reason for hiding this comment

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

We could be a little bit more specific here and log a warning only when the error string contains the error code that we expect, i.e.:

except pythoncom.com_error as e:
    if '0x80041017' in str(e):
        self.warning("blah blah")
    raise e

Also, we could use self.warning instead of self.log.warning.

Thoughts?

@olivielpeau
Copy link
Member

@truthbk Added in a few comments. Looks good overall!

[iis] just change properties to query when it corresponds.

[iis] adding note to config yaml.
@olivielpeau
Copy link
Member

Let's :shipit: !

@olivielpeau
Copy link
Member

(the CI failures are unrelated)

@olivielpeau olivielpeau merged commit f4c3456 into master Mar 28, 2016
@olivielpeau olivielpeau deleted the jaime/iis_fix branch March 28, 2016 20:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants