Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}, (err, res, body) => {
if (res && res.statusCode && body) {
config.awsid = body.instanceId;
config.awsregion = body.region;
config.awsaz = body.availabilityZone;
config.awsami = body.imageId;
config.awstype = body.instanceType;
}
macaddress.all((error, all) => {
if (error) {
utils.log(`error in getting mac address: ${error}`, 'error');
}
return cb(null, error ? {} : all);
});
});
}