diff --git a/azure-mgmt-network/HISTORY.rst b/azure-mgmt-network/HISTORY.rst index f4ea4f9eed0c..2e3b030c3ef6 100644 --- a/azure-mgmt-network/HISTORY.rst +++ b/azure-mgmt-network/HISTORY.rst @@ -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) ++++++++++++++++++ diff --git a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py index bd0f14eb8048..4a35508e3801 100644 --- a/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py +++ b/azure-mgmt-network/azure/mgmt/network/v2018_08_01/operations/network_profiles_operations.py @@ -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 diff --git a/azure-mgmt-network/azure/mgmt/network/version.py b/azure-mgmt-network/azure/mgmt/network/version.py index 39bc8ba8c51c..a6dd75d591a0 100644 --- a/azure-mgmt-network/azure/mgmt/network/version.py +++ b/azure-mgmt-network/azure/mgmt/network/version.py @@ -5,4 +5,4 @@ # license information. # -------------------------------------------------------------------------- -VERSION = "2.2.0" +VERSION = "2.2.1"