Skip to content

Commit

Permalink
[AutoPR] network/resource-manager (#3347)
Browse files Browse the repository at this point in the history
* [AutoPR network/resource-manager] Add 202 response code as expected for network profile deletion (#3346)

* Generated from 5f80ab752b1ce5f0c6f8f85f77faac6a761c0923

add 202 response code as expected for network profile deletion

add 202 to delete example

* Generated from 29d8e659f90393d32f1a762f293cd7b3acb5644f

added 200 response code for network profile

* 2.2.1
  • Loading branch information
AutorestCI authored and lmazuel committed Sep 14, 2018
1 parent 8b0b354 commit d54068d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions azure-mgmt-network/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

2.2.1 (2018-09-14)
++++++++++++++++++

**Bugfixes**

- Fix unexpected exception with network_profiles.delete

2.2.0 (2018-09-11)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def _delete_initial(
request = self._client.delete(url, query_parameters, header_parameters)
response = self._client.send(request, stream=False, **operation_config)

if response.status_code not in [204]:
if response.status_code not in [200, 202, 204]:
exp = CloudError(response)
exp.request_id = response.headers.get('x-ms-request-id')
raise exp
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-network/azure/mgmt/network/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
# license information.
# --------------------------------------------------------------------------

VERSION = "2.2.0"
VERSION = "2.2.1"

0 comments on commit d54068d

Please sign in to comment.