Skip to content

Commit 812a140

Browse files
committed
volume upload: returning only the first payload incase of templates
Cross zone copy will be intiated by the management server.
1 parent 3814677 commit 812a140

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎server/src/com/cloud/template/TemplateManagerImpl.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ public GetUploadParamsResponse registerTemplateForPostUpload(GetUploadParamsForT
345345

346346
/*
347347
* 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
348-
* template will be propagated to the rest through copy.
348+
* template will be propagated to the rest through copy by management server commands.
349349
*/
350350
TemplateOrVolumePostUploadCommand firstCommand = payload.get(0);
351351

@@ -376,7 +376,7 @@ public GetUploadParamsResponse registerTemplateForPostUpload(GetUploadParamsForT
376376
* encoded metadata using the post upload config ssh key
377377
*/
378378
Gson gson = new GsonBuilder().create();
379-
String jsonPayload = gson.toJson(payload);
379+
String jsonPayload = gson.toJson(firstCommand);
380380
response.setMetadata(EncryptionUtil.encodeData(jsonPayload, key));
381381

382382
/*

0 commit comments

Comments
 (0)