fixed ec2metadata not found error

This commit is contained in:
cubedro 2015-05-09 17:46:30 +03:00
parent 9d782eccdf
commit f92e45e0bb
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ Socket = Primus.createSocket({
if(process.env.NODE_ENV === 'production' && INSTANCE_NAME === "")
{
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id', {silent: true}).output;
INSTANCE_NAME = shelljs.exec('ec2metadata --instance-id 2>/dev/null', {silent: true}).output;
}
console.log('');