From 8aca1828fc983ace0e90a5495595f7ec9c891beb Mon Sep 17 00:00:00 2001 From: Richard Downer Date: Sat, 1 Sep 2012 17:35:24 +0300 Subject: [PATCH 1/3] Update parsing of Status in CloudStack Template The CloudStack Template status field is generally presented as human readable text. This commit extends the enum fromValue() to understand the known status strings in CloudStack 3.0.4. --- .../org/jclouds/cloudstack/domain/Template.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java index 0891c839a2..55a2136516 100644 --- a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java +++ b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/domain/Template.java @@ -23,6 +23,7 @@ import static com.google.common.base.Preconditions.checkNotNull; import java.beans.ConstructorProperties; import java.util.Date; +import com.google.common.base.Strings; import org.jclouds.javax.annotation.Nullable; import com.google.common.base.Objects; @@ -82,9 +83,15 @@ public class Template implements Comparable