Skip to content

Commit

Permalink
[Fixes #693] Fix for VM Datadisk status code
Browse files Browse the repository at this point in the history
  • Loading branch information
jianghaolu committed May 10, 2016
1 parent 7f29567 commit 89798e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2215,7 +2215,7 @@ public OperationResponse updateDataDisk(String serviceName, String deploymentNam
CloudTracing.receiveResponse(invocationId, httpResponse);
}
int statusCode = httpResponse.getStatusLine().getStatusCode();
if (statusCode != HttpStatus.SC_OK) {
if (statusCode != HttpStatus.SC_OK && statusCode != HttpStatus.SC_ACCEPTED) {
ServiceException ex = ServiceException.createFromXml(httpRequest, requestContent, httpResponse, httpResponse.getEntity());
if (shouldTrace) {
CloudTracing.error(invocationId, ex);
Expand Down

0 comments on commit 89798e9

Please sign in to comment.