allowed image to be null

This commit is contained in:
Adrian Cole 2010-09-15 14:20:49 -07:00
parent 83393f1315
commit 3799ce0a48
1 changed files with 0 additions and 2 deletions

View File

@ -20,7 +20,6 @@
package org.jclouds.aws.ec2.compute.strategy;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import javax.inject.Singleton;
@ -37,7 +36,6 @@ public class EC2PopulateDefaultLoginCredentialsForImageStrategy implements
@Override
public Credentials execute(Object resourceToAuthenticate) {
checkNotNull(resourceToAuthenticate);
checkArgument(resourceToAuthenticate instanceof Image, "Resource must be an image (for EC2)");
Image image = (Image) resourceToAuthenticate;