mirror of https://github.com/apache/jclouds.git
fromTemplate() doesn't ensure descriptions are equal
This commit is contained in:
parent
d5e66575e9
commit
5d322815ca
|
@ -499,13 +499,13 @@ public class TemplateBuilderImpl implements TemplateBuilder {
|
||||||
if (image.getName() != null)
|
if (image.getName() != null)
|
||||||
this.imageName = image.getName();
|
this.imageName = image.getName();
|
||||||
if (image.getDescription() != null)
|
if (image.getDescription() != null)
|
||||||
this.imageDescription = image.getDescription();
|
this.imageDescription = String.format("^%s$", image.getDescription());
|
||||||
if (image.getOperatingSystem().getName() != null)
|
if (image.getOperatingSystem().getName() != null)
|
||||||
this.osName = image.getOperatingSystem().getName();
|
this.osName = image.getOperatingSystem().getName();
|
||||||
if (image.getOperatingSystem().getDescription() != null)
|
if (image.getOperatingSystem().getDescription() != null)
|
||||||
this.osDescription = image.getOperatingSystem().getDescription();
|
this.osDescription = image.getOperatingSystem().getDescription();
|
||||||
if (image.getVersion() != null)
|
if (image.getVersion() != null)
|
||||||
this.imageVersion = image.getVersion();
|
this.imageVersion = String.format("^%s$", image.getVersion());
|
||||||
if (image.getOperatingSystem().getVersion() != null)
|
if (image.getOperatingSystem().getVersion() != null)
|
||||||
this.osVersion = image.getOperatingSystem().getVersion();
|
this.osVersion = image.getOperatingSystem().getVersion();
|
||||||
this.os64Bit = image.getOperatingSystem().is64Bit();
|
this.os64Bit = image.getOperatingSystem().is64Bit();
|
||||||
|
|
Loading…
Reference in New Issue