From f92e45e0bb4c4a0a2bd9185da13ca77865006a00 Mon Sep 17 00:00:00 2001 From: cubedro Date: Sat, 9 May 2015 17:46:30 +0300 Subject: [PATCH] fixed ec2metadata not found error --- lib/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node.js b/lib/node.js index c74ab94..98a66d3 100644 --- a/lib/node.js +++ b/lib/node.js @@ -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('');