Skip to content

Commit 23fb1e6

Browse files
sjanuarymattcolegate
authored andcommitted
Headless zip not obeying renamed properties (#357)
1 parent 3424d2e commit 23fb1e6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

index.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,12 @@ module.exports.getJSONProfilingMode = function() {
299299

300300
module.exports.start = function start () {
301301
agent.setOption(propertyMappings['applicationID'], main_filename);
302+
for(var property in headlessPropertyMappings) {
303+
var prop = agent.getOption(property);
304+
if(prop) {
305+
agent.setOption(headlessPropertyMappings[property], prop);
306+
}
307+
}
302308
var headlessOutputDir = agent.getOption('com.ibm.diagnostics.healthcenter.headless.output.directory');
303309
if(headlessOutputDir) {
304310
headlessZip.setHeadlessOutputDir(headlessOutputDir);
@@ -307,12 +313,6 @@ module.exports.start = function start () {
307313
if(headlessFilesToKeep && !isNaN(headlessFilesToKeep) && headlessFilesToKeep > 0) {
308314
headlessZip.setFilesToKeep(headlessFilesToKeep);
309315
}
310-
for(var property in headlessPropertyMappings) {
311-
var prop = agent.getOption(property);
312-
if(prop) {
313-
agent.setOption(headlessPropertyMappings[property], prop);
314-
}
315-
}
316316
var am = this;
317317
agent.start();
318318
process.on('exit', function () {

0 commit comments

Comments
 (0)