Fix path_style_access after merge with master
This commit is contained in:
parent
98fd5833cc
commit
11ec3a4af6
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue