more euca

This commit is contained in:
Adrian Cole 2010-09-15 16:04:02 -07:00
parent 3799ce0a48
commit 69417755cd
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ public class EC2PopulateDefaultLoginCredentialsForImageStrategy implements
@Override
public Credentials execute(Object resourceToAuthenticate) {
if (resourceToAuthenticate == null)
return new Credentials("root", null);
checkArgument(resourceToAuthenticate instanceof Image, "Resource must be an image (for EC2)");
Image image = (Image) resourceToAuthenticate;