mirror of https://github.com/apache/jclouds.git
Merge pull request #61 from dralves/master
Issue 676: Simple change to avoid NPE when tranforming nova.domain.Image into compute.domain.Image
This commit is contained in:
commit
de19f777a6
|
@ -46,7 +46,7 @@ public class NovaImageToImage implements Function<org.jclouds.openstack.nova.dom
|
|||
builder.ids(from.getId() + "");
|
||||
builder.name(from.getName() != null ? from.getName() : "unspecified");
|
||||
builder.description(from.getName() != null ? from.getName() : "unspecified");
|
||||
builder.version(from.getUpdated().getTime() + "");
|
||||
builder.version(from.getUpdated() != null ? from.getUpdated().getTime() + "" : "-1");
|
||||
builder.operatingSystem(imageToOs.apply(from)); //image name may not represent the OS type
|
||||
builder.defaultCredentials(new Credentials("root", null));
|
||||
builder.uri(from.getURI());
|
||||
|
|
Loading…
Reference in New Issue