Calling ec2metadata seems to be causing issues on some machines. Changes detection to just work by detecting if it's there.
This commit is contained in:
parent
ed46200858
commit
945dcae9c0
@ -179,7 +179,11 @@ public class AwsCandidateHarvester
|
||||
{
|
||||
try
|
||||
{
|
||||
Runtime.getRuntime().exec("ec2metadata");
|
||||
if(new File("/usr/bin/ec2metadata").exists())
|
||||
return true;
|
||||
|
||||
//the command below seems to be freezing on some systems.
|
||||
//Runtime.getRuntime().exec("ec2metadata --help");
|
||||
|
||||
//if this is an AWS EC2 we would throw an exception above and not
|
||||
//get here, so ... be happy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user