Skip to content

Commit

Permalink
Merge pull request #695 from jianghaolu/0.9
Browse files Browse the repository at this point in the history
[Fixes #693] Fix for VM Datadisk status code
  • Loading branch information
jianghaolu committed May 23, 2016
2 parents 7f29567 + 89798e9 commit 06051dd
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 06051dd

Please sign in to comment.