From 5b91b20d0758245e31b5279ccef9e3544f0431e9 Mon Sep 17 00:00:00 2001 From: Andrew Donald Kennedy Date: Mon, 10 Oct 2011 17:06:29 +0100 Subject: [PATCH] 612: Change in predicate to equalTo --- .../compute/functions/AWSRunningInstanceToNodeMetadata.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/functions/AWSRunningInstanceToNodeMetadata.java b/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/functions/AWSRunningInstanceToNodeMetadata.java index c29d8fa082..9796a76e97 100644 --- a/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/functions/AWSRunningInstanceToNodeMetadata.java +++ b/providers/aws-ec2/src/main/java/org/jclouds/aws/ec2/compute/functions/AWSRunningInstanceToNodeMetadata.java @@ -42,7 +42,6 @@ import org.jclouds.ec2.domain.RunningInstance; import com.google.common.base.Supplier; import com.google.common.cache.Cache; -import com.google.common.collect.ImmutableSet; /** * @author Adrian Cole @@ -74,7 +73,7 @@ public class AWSRunningInstanceToNodeMetadata extends RunningInstanceToNodeMetad protected NodeMetadataBuilder buildInstance(RunningInstance instance, NodeMetadataBuilder builder) { Map tags = AWSRunningInstance.class.cast(instance).getTags(); return super.buildInstance(instance, builder) - .tags(filterValues(tags, in(ImmutableSet.of(""))).keySet()) - .userMetadata(filterValues(tags, not(in(ImmutableSet.of(""))))); + .tags(filterValues(tags, equalTo("")).keySet()) + .userMetadata(filterValues(tags, not(equalTo("")))); } }