mirror of https://github.com/apache/jclouds.git
612: Change in predicate to equalTo
This commit is contained in:
parent
83aae3fe08
commit
5b91b20d07
|
@ -42,7 +42,6 @@ import org.jclouds.ec2.domain.RunningInstance;
|
||||||
|
|
||||||
import com.google.common.base.Supplier;
|
import com.google.common.base.Supplier;
|
||||||
import com.google.common.cache.Cache;
|
import com.google.common.cache.Cache;
|
||||||
import com.google.common.collect.ImmutableSet;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author Adrian Cole
|
* @author Adrian Cole
|
||||||
|
@ -74,7 +73,7 @@ public class AWSRunningInstanceToNodeMetadata extends RunningInstanceToNodeMetad
|
||||||
protected NodeMetadataBuilder buildInstance(RunningInstance instance, NodeMetadataBuilder builder) {
|
protected NodeMetadataBuilder buildInstance(RunningInstance instance, NodeMetadataBuilder builder) {
|
||||||
Map<String, String> tags = AWSRunningInstance.class.cast(instance).getTags();
|
Map<String, String> tags = AWSRunningInstance.class.cast(instance).getTags();
|
||||||
return super.buildInstance(instance, builder)
|
return super.buildInstance(instance, builder)
|
||||||
.tags(filterValues(tags, in(ImmutableSet.<String>of(""))).keySet())
|
.tags(filterValues(tags, equalTo("")).keySet())
|
||||||
.userMetadata(filterValues(tags, not(in(ImmutableSet.<String>of("")))));
|
.userMetadata(filterValues(tags, not(equalTo(""))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue