Skip to content

Commit c79e88f

Browse files
authored
Deployment not found case handled (#15478)
* Deployment not found case handled * Package version changed
1 parent 019f20a commit c79e88f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common-npm-packages/azure-arm-rest-v2/AzureServiceClientBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export class AzureServiceClientBase {
159159
try {
160160
response = await this.beginRequest(request);
161161
tl.debug(`Response status code : ${response.statusCode}`);
162-
if (response.statusCode === 202 || (response.body && (response.body.status == "Accepted" || response.body.status == "Running" || response.body.status == "InProgress"))) {
162+
if (response.statusCode === 202 || (response.body && (response.body.status == "Accepted" || response.body.status == "Running" || response.body.status == "InProgress" || response.body.status == "DeploymentNotFound"))) {
163163
if (response.body && response.body.status) {
164164
tl.debug(`Response status : ${response.body.status}`);
165165
}

common-npm-packages/azure-arm-rest-v2/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "azure-pipelines-tasks-azure-arm-rest-v2",
3-
"version": "2.0.5",
3+
"version": "2.0.6",
44
"description": "Common Lib for Azure ARM REST apis",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)