From 5d322815cac0a2bd70a47f2067152bdd698a111e Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Thu, 22 Mar 2012 21:34:06 -0700 Subject: [PATCH] fromTemplate() doesn't ensure descriptions are equal --- .../jclouds/compute/domain/internal/TemplateBuilderImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java index cce33f62c4..4930f5803e 100644 --- a/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java +++ b/compute/src/main/java/org/jclouds/compute/domain/internal/TemplateBuilderImpl.java @@ -499,13 +499,13 @@ public class TemplateBuilderImpl implements TemplateBuilder { if (image.getName() != null) this.imageName = image.getName(); if (image.getDescription() != null) - this.imageDescription = image.getDescription(); + this.imageDescription = String.format("^%s$", image.getDescription()); if (image.getOperatingSystem().getName() != null) this.osName = image.getOperatingSystem().getName(); if (image.getOperatingSystem().getDescription() != null) this.osDescription = image.getOperatingSystem().getDescription(); if (image.getVersion() != null) - this.imageVersion = image.getVersion(); + this.imageVersion = String.format("^%s$", image.getVersion()); if (image.getOperatingSystem().getVersion() != null) this.osVersion = image.getOperatingSystem().getVersion(); this.os64Bit = image.getOperatingSystem().is64Bit();