Skip to content

Commit 1d46bc5

Browse files
ddivanshupradudevPradeep ChouhanDivanshu Aggarwal
authored
Fixed the null issue while parsing the ARM deployment output (#14334) (#14363)
* Fixed the null issue while parsing the deployment output * updating version Co-authored-by: Pradeep Chouhan <[email protected]> Co-authored-by: ddivanshu <[email protected]> Co-authored-by: Divanshu Aggarwal <[email protected]> Co-authored-by: Pradeep Chouhan <[email protected]> Co-authored-by: Pradeep Chouhan <[email protected]> Co-authored-by: Divanshu Aggarwal <[email protected]>
1 parent f8c1fd4 commit 1d46bc5

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Tasks/AzureResourceGroupDeploymentV2/operations/ResourceGroup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ export class ResourceGroup {
559559
if (result && result["properties"] && result["properties"]["outputs"] && utils.isNonEmpty(this.taskParameters.deploymentOutputs)) {
560560
const setVariablesInObject = (path: string, obj: any) => {
561561
for (var key of Object.keys(obj)) {
562-
if (typeof(obj[key]) === "object") {
562+
if (obj[key] && typeof(obj[key]) === "object") {
563563
setVariablesInObject(`${path}.${key}`, obj[key]);
564564
}
565565
else {

Tasks/AzureResourceGroupDeploymentV2/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "Microsoft Corporation",
1515
"version": {
1616
"Major": 2,
17-
"Minor": 181,
17+
"Minor": 182,
1818
"Patch": 0
1919
},
2020
"demands": [],

Tasks/AzureResourceGroupDeploymentV2/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "Microsoft Corporation",
1515
"version": {
1616
"Major": 2,
17-
"Minor": 181,
17+
"Minor": 182,
1818
"Patch": 0
1919
},
2020
"demands": [],

Tasks/AzureResourceManagerTemplateDeploymentV3/operations/DeploymentScopeBase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export class DeploymentScopeBase {
7373
if (result && result["properties"] && result["properties"]["outputs"] && utils.isNonEmpty(this.taskParameters.deploymentOutputs)) {
7474
const setVariablesInObject = (path: string, obj: any) => {
7575
for (var key of Object.keys(obj)) {
76-
if (typeof(obj[key]) === "object") {
76+
if (obj[key] && typeof(obj[key]) === "object") {
7777
setVariablesInObject(`${path}.${key}`, obj[key]);
7878
}
7979
else {

Tasks/AzureResourceManagerTemplateDeploymentV3/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "Microsoft Corporation",
1515
"version": {
1616
"Major": 3,
17-
"Minor": 181,
17+
"Minor": 182,
1818
"Patch": 0
1919
},
2020
"demands": [],

Tasks/AzureResourceManagerTemplateDeploymentV3/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"author": "Microsoft Corporation",
1515
"version": {
1616
"Major": 3,
17-
"Minor": 181,
17+
"Minor": 182,
1818
"Patch": 0
1919
},
2020
"demands": [],

0 commit comments

Comments
 (0)