Skip to content

Commit

Permalink
Update settings filter
Browse files Browse the repository at this point in the history
Update settings filter to match elastic/elasticsearch#9748
  • Loading branch information
imotov committed Feb 24, 2015
1 parent 3a4e472 commit 20a9991
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 43 deletions.
5 changes: 4 additions & 1 deletion src/main/java/org/elasticsearch/cloud/aws/AwsEc2Service.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,10 @@ public class AwsEc2Service extends AbstractLifecycleComponent<AwsEc2Service> {
@Inject
public AwsEc2Service(Settings settings, SettingsFilter settingsFilter, NetworkService networkService, DiscoveryNodeService discoveryNodeService) {
super(settings);
settingsFilter.addFilter(new AwsSettingsFilter());
settingsFilter.addFilter("cloud.key");
settingsFilter.addFilter("cloud.account");
settingsFilter.addFilter("cloud.aws.access_key");
settingsFilter.addFilter("cloud.aws.secret_key");
// add specific ec2 name resolver
networkService.addCustomNameResolver(new Ec2NameResolver(settings));
discoveryNodeService.addCustomAttributeProvider(new Ec2CustomNodeAttributes(settings));
Expand Down
37 changes: 0 additions & 37 deletions src/main/java/org/elasticsearch/cloud/aws/AwsSettingsFilter.java

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,8 @@ public class InternalAwsS3Service extends AbstractLifecycleComponent<AwsS3Servic
private Map<Tuple<String, String>, AmazonS3Client> clients = new HashMap<Tuple<String,String>, AmazonS3Client>();

@Inject
public InternalAwsS3Service(Settings settings, SettingsFilter settingsFilter) {
public InternalAwsS3Service(Settings settings) {
super(settings);

settingsFilter.addFilter(new AwsSettingsFilter());
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ public class TestAwsS3Service extends InternalAwsS3Service {
IdentityHashMap<AmazonS3, TestAmazonS3> clients = new IdentityHashMap<AmazonS3, TestAmazonS3>();

@Inject
public TestAwsS3Service(Settings settings, SettingsFilter settingsFilter) {
super(settings, settingsFilter);
public TestAwsS3Service(Settings settings) {
super(settings);
}


Expand Down

0 comments on commit 20a9991

Please sign in to comment.