fix cloudwatch

This commit is contained in:
Adrian Cole 2012-04-13 10:48:38 -06:00
parent 281692bd0b
commit 3b2e6ea796
1 changed files with 2 additions and 3 deletions

View File

@ -55,7 +55,6 @@ import org.jclouds.ec2.domain.KeyPair;
import org.jclouds.ec2.domain.SecurityGroup;
import org.jclouds.ec2.services.InstanceClient;
import org.jclouds.ec2.services.KeyPairClient;
import org.jclouds.logging.log4j.config.Log4JLoggingModule;
import org.jclouds.rest.RestContext;
import org.jclouds.rest.internal.ContextBuilder;
import org.jclouds.scriptbuilder.domain.Statements;
@ -68,7 +67,6 @@ import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.collect.Iterables;
import com.google.common.util.concurrent.ListenableFuture;
import com.google.inject.Module;
/**
*
@ -169,7 +167,8 @@ public class AWSEC2ComputeServiceLiveTest extends EC2ComputeServiceLiveTest<AWSE
RestContext<CloudWatchClient, CloudWatchAsyncClient> monitoringContext = ContextBuilder
.newBuilder(new AWSCloudWatchProviderMetadata())
.modules(ImmutableSet.<Module> of(new Log4JLoggingModule())).build();
.credentials(identity, credential)
.modules(setupModules()).build();
try {
Set<Datapoint> datapoints = monitoringContext.getApi().getMetricStatisticsInRegion(instance.getRegion(),