mirror of https://github.com/apache/jclouds.git
fix ec2 to work with canonical AMIs
This commit is contained in:
parent
736e85da6b
commit
c352f408a2
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue