From 47697d6f7e3e982eb443b4b60a677cff1cecfdd4 Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sun, 26 Sep 2010 14:02:31 +0100 Subject: [PATCH] fixed copy on template as it was missing parameters --- .../compute/domain/internal/TemplateBuilderImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) 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 5c0599b453..e872baf83e 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 @@ -815,6 +815,12 @@ public class TemplateBuilderImpl implements TemplateBuilder { to.withMetadata(); if (!from.shouldBlockUntilRunning()) to.blockUntilRunning(false); + if (!from.shouldBlockOnComplete()) + to.blockOnComplete(false); + if (from.getOverrideCredentials() != null) + to.withOverridingCredentials(from.getOverrideCredentials()); + if (from.getTaskName() != null) + to.nameTask(from.getTaskName()); } @VisibleForTesting