Skip to content

Commit 646a34a

Browse files
author
Adam Rutland
authored
Merge pull request #378 from tomcsmith1990/deploy/vlocity-data-pack-type-on-compilation-error
Set the VlocityDataPackType in the JSON output when a data pack is removed from deployment due to a compilation error
2 parents 9198cb3 + f14e391 commit 646a34a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/datapacksbuilder.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,14 @@ DataPacksBuilder.prototype.buildImport = async function(importPath, jobInfo, val
202202
if (dataPackImport.dataPacks.length > 0) {
203203
VlocityUtils.success(jobInfo.jobAction, dataPackImport.dataPacks.length, 'Items');
204204

205+
for (var dataPack of dataPackImport.dataPacks) {
206+
var data = jobInfo.allDataSummary[dataPack.VlocityDataPackKey];
207+
208+
if (data) {
209+
data.VlocityDataPackType = dataPack.VlocityDataPackType;
210+
}
211+
}
212+
205213
if (jobInfo.compileOnBuild) {
206214

207215
let result = await self.compileQueuedData();

lib/datapacksjob.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2240,7 +2240,6 @@ DataPacksJob.prototype.deployPack = async function(inputMap) {
22402240
var data = jobInfo.allDataSummary[dataPack.VlocityDataPackKey];
22412241

22422242
if (data) {
2243-
data.VlocityDataPackType = dataPack.VlocityDataPackType;
22442243
preStepDeployData.push(data);
22452244
}
22462245
}

0 commit comments

Comments
 (0)