add config to swollow index creation errors

This commit is contained in:
Joe Fleming 2015-11-05 16:36:11 -07:00
parent 32e9201ba5
commit 7f75f65b5d
3 changed files with 7 additions and 2 deletions

View file

@ -20,7 +20,8 @@ module.exports = {
bulk: [{
indexName: '.kibana',
indexDefinition: 'kibanaDefinition.js',
source: 'kibana.js'
source: 'kibana.js',
haltOnFailure: false
}]
}
}

View file

@ -38,6 +38,10 @@ ScenarioManager.prototype.load = function (id) {
return self.client.bulk({
body: body
});
})
.catch(function (err) {
if (bulk.haltOnFailure === false) return;
throw err;
});
}));
};

View file

@ -24,7 +24,7 @@ define(function (require) {
// since we're using hash URLs, always reload first to force re-render
return self.remote.refresh()
.then(function () {
return self.remote.get(url)
return self.remote.get(url);
})
.then(function () {
if (testStatusPage !== false) {