From 812a140d178e49052fdf6dca3ed59949c73f6ac2 Mon Sep 17 00:00:00 2001 From: Rajani Karuturi Date: Mon, 2 Feb 2015 15:00:45 +0530 Subject: [PATCH] volume upload: returning only the first payload incase of templates Cross zone copy will be intiated by the management server. --- server/src/com/cloud/template/TemplateManagerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/com/cloud/template/TemplateManagerImpl.java b/server/src/com/cloud/template/TemplateManagerImpl.java index 32c121cfc3f..d7a298be9ff 100755 --- a/server/src/com/cloud/template/TemplateManagerImpl.java +++ b/server/src/com/cloud/template/TemplateManagerImpl.java @@ -345,7 +345,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager, /* * There can be one or more commands depending on the number of secondary stores the template needs to go to. Taking the first one to do the url upload. The - * template will be propagated to the rest through copy. + * template will be propagated to the rest through copy by management server commands. */ TemplateOrVolumePostUploadCommand firstCommand = payload.get(0); @@ -376,7 +376,7 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager, * encoded metadata using the post upload config ssh key */ Gson gson = new GsonBuilder().create(); - String jsonPayload = gson.toJson(payload); + String jsonPayload = gson.toJson(firstCommand); response.setMetadata(EncryptionUtil.encodeData(jsonPayload, key)); /*