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

[Communication]: Added exception to begin_update_phone_number_capabilities #18025

Merged
merged 2 commits into from
Apr 14, 2021

Conversation

lsundaralingam
Copy link
Member

@lsundaralingam lsundaralingam commented Apr 13, 2021

This is to address the case when the service returns a response with the status code 200 and an error in the body.

@ghost ghost added the Communication label Apr 13, 2021
@lsundaralingam
Copy link
Member Author

/azp run python - communication - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lsundaralingam lsundaralingam changed the title Added exception to begin_update_phone_number_capabilities [Communication]: Added exception to begin_update_phone_number_capabilities Apr 14, 2021
@lsundaralingam lsundaralingam marked this pull request as ready for review April 14, 2021 00:38
phone_number,
calling=calling,
sms=sms,
**kwargs
)

result_properties = poller.result().additional_properties
if 'status' in result_properties and result_properties['status'] == 'failed':
Copy link
Member

Choose a reason for hiding this comment

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

Is this check case sensitive?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, this check is case sensitive.

Copy link
Member Author

Choose a reason for hiding this comment

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

Discussed this offline. The status value isn't always lower case, so this check should handle that.

Copy link
Contributor

@jbeauregardb jbeauregardb left a comment

Choose a reason for hiding this comment

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

Thank you for doing this!

@lsundaralingam
Copy link
Member Author

/azp run python - communication - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@lsundaralingam lsundaralingam merged commit f241e37 into Azure:master Apr 14, 2021
@lsundaralingam lsundaralingam deleted the phoneNumbersException branch April 21, 2021 00:44
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.

4 participants