From ef6e43e18d04b05a398c9d45a12807a4e9c5a406 Mon Sep 17 00:00:00 2001 From: David Pilato Date: Fri, 3 Jun 2016 18:27:27 +0200 Subject: [PATCH] We don't need many URLs here but just one --- .../cloud/gce/GceInstancesServiceImpl.java | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/plugins/discovery-gce/src/main/java/org/elasticsearch/cloud/gce/GceInstancesServiceImpl.java b/plugins/discovery-gce/src/main/java/org/elasticsearch/cloud/gce/GceInstancesServiceImpl.java index 9fcea3f0adb..acd463667a6 100644 --- a/plugins/discovery-gce/src/main/java/org/elasticsearch/cloud/gce/GceInstancesServiceImpl.java +++ b/plugins/discovery-gce/src/main/java/org/elasticsearch/cloud/gce/GceInstancesServiceImpl.java @@ -60,14 +60,6 @@ public class GceInstancesServiceImpl extends AbstractLifecycleComponent zones; - // Forcing Google Token API URL as set in GCE SDK to - // http://metadata/computeMetadata/v1/instance/service-accounts/default/token - // See https://developers.google.com/compute/docs/metadata#metadataserver - private final String gceHost; - private final String metaDataUrl; - private final String tokenServerEncodedUrl; - private String gceRootUrl; - @Override public Collection instances() { @@ -124,10 +116,6 @@ public class GceInstancesServiceImpl extends AbstractLifecycleComponent