fix ec2 to work with canonical AMIs

This commit is contained in:
Chas Emerick 2010-04-06 08:24:55 -04:00
parent 736e85da6b
commit c352f408a2
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ public class RunningInstanceToNodeMetadata implements Function<RunningInstance,
// canonical/alestic images use the ubuntu user to login
// TODO: add this as a property of image
if (credentials != null && image.getImageOwnerId().equals("063491364108"))
if (credentials != null && image.getImageOwnerId().matches("063491364108|099720109477"))
credentials = new Credentials("ubuntu", credentials.key);
String locationId = from.getAvailabilityZone().toString();