Merge pull request #114 from cubedro/develop

Fixed ec2metadata not found error
This commit is contained in:
Marian OANCΞA 2015-05-09 17:46:48 +03:00
commit 08ae5714a1
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('');