Fix path_style_access after merge with master

This commit is contained in:
David Pilato 2016-07-21 09:45:12 +02:00
parent 98fd5833cc
commit 11ec3a4af6
2 changed files with 5 additions and 4 deletions

View File

@ -41,7 +41,7 @@ import java.security.PrivilegedAction;
import java.security.PrivilegedExceptionAction;
import java.util.function.Function;
public class GceMetadataServiceImpl extends AbstractLifecycleComponent<GceMetadataServiceImpl> {
public class GceMetadataServiceImpl extends AbstractLifecycleComponent {
// Forcing Google Token API URL as set in GCE SDK to
// http://metadata/computeMetadata/v1/instance/service-accounts/default/token

View File

@ -86,9 +86,10 @@ public class GceDiscoveryPlugin extends Plugin {
@SuppressWarnings("rawtypes") // Supertype uses raw type
public Collection<Class<? extends LifecycleComponent>> getGuiceServiceClasses() {
logger.debug("Register gce compute and metadata services");
return Collections.singletonList(
GceModule.getComputeServiceImpl(),
GceModule.getMetadataServiceImpl());
Collection<Class<? extends LifecycleComponent>> services = new ArrayList<>();
services.add(GceModule.getComputeServiceImpl());
services.add(GceModule.getMetadataServiceImpl());
return services;
}
public void onModule(DiscoveryModule discoveryModule) {