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

Minor bug fixes #536

Merged
merged 3 commits into from
Jan 10, 2017
Merged

Minor bug fixes #536

merged 3 commits into from
Jan 10, 2017

Conversation

hglkrijger
Copy link
Member

secure = False
if secure_warning:
logger.warn("httplib is not built with ssl support")
secure_warning = False
Copy link
Contributor

Choose a reason for hiding this comment

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

@hglkrijger I can see you set it False here, but where does it ever achieve True?

Copy link
Member Author

Choose a reason for hiding this comment

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

line 32

Copy link
Contributor

Choose a reason for hiding this comment

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

@hglkrijger Hmm, how did I miss that? :P

@@ -107,7 +107,8 @@ def parse_ext_status(ext_status, data):
if substatus_list is None:
return
for substatus in substatus_list:
ext_status.substatusList.append(parse_ext_substatus(substatus))
if substatus is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

@hglkrijger Would a better check be to see if ext_status.substatuslist is a list (that is, check for vs. check absence)?

Copy link
Member Author

Choose a reason for hiding this comment

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

The issue we see is that substatus is None, and the parse in line 111 fails.

Copy link
Contributor

Choose a reason for hiding this comment

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

@hglkrijger I understand. But 111 needs a list...so why not check (if possible) that ext_status.substatusList is a list (vs. simply ensuring it's not None)?

Copy link
Contributor

Choose a reason for hiding this comment

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

@hglkrijger Nevermind. Senility.

@hglkrijger hglkrijger merged commit 4452c6a into Azure:master Jan 10, 2017
@hglkrijger hglkrijger deleted the gh-bugfixes branch January 10, 2017 00:11
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.

3 participants