-
Notifications
You must be signed in to change notification settings - Fork 742
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
LRO PUT operation marked as done when not completed #1133
Comments
Hi @derekbekoe |
Thanks! I will take a look. |
@derekbekoe - would it be possible to get the contents of the API polling responses? |
@derekbekoe - actually it would also be helpful to know which service spec the client you're using was generated from and which PUT call was exhibiting this behaviour - I can probably work backwards from that. :) |
@annatisch I reproduce the problem with VM create (so Compute file) When calling I got a deserialise error on this: “{"status":"Succeeded"}”. msrestazure was trying to deserialize that as a |
Thanks! |
* Fix for #1133 by @annatisch * Python - msrestazure 0.4.1 * Fix Azure operation tests
In Python msrestazure 0.4.0 PUT operations are marked as completed when they have not.
I believe the issue is with azure_operation.py
In
AzureOperationPoller._poll()
there is a call toself._operation.is_done()
to check if the LRO is completed.For a PUT operation,
LongRunningOperation.is_done()
returnsTrue
when in 0.3.0, it returnedFalse
.The expected result is
False
so 1 more request can be made using the initial_url to get the expected response.This is a related PR that changed the azure_operation.py file #1078.
This issue may be related to #1128
The text was updated successfully, but these errors were encountered: