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

azure - Update azure-functions #4364

Conversation

logachev
Copy link
Collaborator

@logachev logachev commented Jul 11, 2019

There was some refactoring in azure-functions-worker library and old code stopped working.

addresses #4363

@@ -17,7 +17,7 @@
import unittest

try:
from azure.functions_worker.bindings.queue import QueueMessage
from azure.functions.queue import QueueMessage
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is this in a try/except import block in a unit test?

Copy link
Collaborator

Choose a reason for hiding this comment

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

nevermind the the ci failure indicates due to not working on python 2.7

Copy link
Collaborator

Choose a reason for hiding this comment

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

in general the blanket catch on import errors should be localized to python 2.7 so that the other runtimes actually throw properly on errors.

@@ -70,6 +70,7 @@
"azure-mgmt-eventgrid",
"azure-mgmt-logic",
"azure-cosmos",
"azure-functions",
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think we do this as it only works in 3.6/3.7 and isn't needed here.

Copy link
Collaborator

@stefangordon stefangordon left a comment

Choose a reason for hiding this comment

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

lgtm but going to let someone else approve before merge also since I just made a commit in here.

@stefangordon stefangordon merged commit bd56ad9 into cloud-custodian:master Jul 11, 2019
fidelito pushed a commit to fidelito/cloud-custodian that referenced this pull request May 29, 2020
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.

None yet

4 participants