v1.18.x
psychobunny 11 years ago
parent e336188ccc
commit af2b66f438

@ -609,15 +609,13 @@ var fs = require('fs'),
Plugins.getAll = function(callback) {
var request = require('request');
request('http://npm.aws.af.cm/api/v1/plugins', function(err, res, body) {
if (err) {
return callback(err);
}
var plugins = [];
try {
plugins = JSON.parse(body);
} catch(err) {
winston.error('Error parsing plugins : ' + err.message);
return callback(null, []);
plugins = [];
}
var pluginMap = {};

Loading…
Cancel
Save