Skip to content

Commit

Permalink
add comments for lro
Browse files Browse the repository at this point in the history
  • Loading branch information
kairu-ms committed Jul 10, 2022
1 parent 11f1c54 commit cf876c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aaz_dev/cli/controller/az_operation_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ def __init__(self, name, cmd_ctx, operation):
for response in self._operation.http.responses:
if not response.is_error:
if self.is_long_running and response.status_codes == [202]:
# ignore 202 response for long running operation.
# Long running operation should use 200 or 201 schema to deserialize the final response.
continue
self.success_responses.append(AzHttpResponseGenerator(self._cmd_ctx, response))
else:
Expand Down

0 comments on commit cf876c0

Please sign in to comment.