-
Notifications
You must be signed in to change notification settings - Fork 61
fix lro response setting #813
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
Changes from 2 commits
532d0f4
65d634f
4db5d44
e736363
af5479f
f8bd9c1
9fd1ac2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2174,14 +2174,10 @@ async def begin_delete_provisioning202_accepted200_succeeded( | |
| kwargs.pop('content_type', None) | ||
|
|
||
| def get_long_running_output(pipeline_response): | ||
| response_headers = {} | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked out these missing response headers, and I think we were incorrectly generating them in the first place. Basically what happened was that we were setting the 202 response as the final deserialization, when it should've been the 200 response
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've checked all of the response headers where we no longer generate, and this is the case, @lmazuel what're your thoughts? I don't think this is a breaking change since it's really a bug fix, and all of the response headers we exposes before were empty |
||
| response = pipeline_response.http_response | ||
| response_headers['Location']=self._deserialize('str', response.headers.get('Location')) | ||
| response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After')) | ||
| deserialized = self._deserialize('Product', pipeline_response) | ||
|
|
||
| if cls: | ||
| return cls(pipeline_response, deserialized, response_headers) | ||
| return cls(pipeline_response, deserialized, {}) | ||
| return deserialized | ||
|
|
||
| if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) | ||
|
|
@@ -2278,14 +2274,10 @@ async def begin_delete_provisioning202_deleting_failed200( | |
| kwargs.pop('content_type', None) | ||
|
|
||
| def get_long_running_output(pipeline_response): | ||
| response_headers = {} | ||
| response = pipeline_response.http_response | ||
| response_headers['Location']=self._deserialize('str', response.headers.get('Location')) | ||
| response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After')) | ||
| deserialized = self._deserialize('Product', pipeline_response) | ||
|
|
||
| if cls: | ||
| return cls(pipeline_response, deserialized, response_headers) | ||
| return cls(pipeline_response, deserialized, {}) | ||
| return deserialized | ||
|
|
||
| if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) | ||
|
|
@@ -2382,14 +2374,10 @@ async def begin_delete_provisioning202_deletingcanceled200( | |
| kwargs.pop('content_type', None) | ||
|
|
||
| def get_long_running_output(pipeline_response): | ||
| response_headers = {} | ||
| response = pipeline_response.http_response | ||
| response_headers['Location']=self._deserialize('str', response.headers.get('Location')) | ||
| response_headers['Retry-After']=self._deserialize('int', response.headers.get('Retry-After')) | ||
| deserialized = self._deserialize('Product', pipeline_response) | ||
|
|
||
| if cls: | ||
| return cls(pipeline_response, deserialized, response_headers) | ||
| return cls(pipeline_response, deserialized, {}) | ||
| return deserialized | ||
|
|
||
| if polling is True: polling_method = AsyncARMPolling(lro_delay, **kwargs) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep condition # response schemas