Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 1161D200CF8 for ; Thu, 14 Sep 2017 14:24:20 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 107C01609CD; Thu, 14 Sep 2017 12:24:20 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5F4D21609CC for ; Thu, 14 Sep 2017 14:24:19 +0200 (CEST) Received: (qmail 37603 invoked by uid 500); 14 Sep 2017 12:24:17 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 37594 invoked by uid 99); 14 Sep 2017 12:24:17 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Sep 2017 12:24:17 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id C3189849BB; Thu, 14 Sep 2017 12:24:15 +0000 (UTC) Date: Thu, 14 Sep 2017 12:24:14 +0000 To: "commits@cloudstack.apache.org" Subject: [cloudstack] branch master updated: CLOUDSTACK-10019: template.properties has hardcoded id (#2243) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <150539185478.12498.7336560101652533405@gitbox.apache.org> From: bhaisaab@apache.org Reply-To: "commits@cloudstack.apache.org" X-Git-Host: gitbox.apache.org X-Git-Repo: cloudstack X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: d84585fa6ea23a33392a85b3fa7532308c722d1e X-Git-Newrev: c7a55eb812b6b85e0e9715b95f3049c143ca0d39 X-Git-Rev: c7a55eb812b6b85e0e9715b95f3049c143ca0d39 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated archived-at: Thu, 14 Sep 2017 12:24:20 -0000 This is an automated email from the ASF dual-hosted git repository. bhaisaab pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/cloudstack.git The following commit(s) were added to refs/heads/master by this push: new c7a55eb CLOUDSTACK-10019: template.properties has hardcoded id (#2243) c7a55eb is described below commit c7a55eb812b6b85e0e9715b95f3049c143ca0d39 Author: mrunalinikankariya AuthorDate: Thu Sep 14 17:54:12 2017 +0530 CLOUDSTACK-10019: template.properties has hardcoded id (#2243) The template.properties file created after creating template from snapshot has hardcoded id = 1. The id should have template ID. --- .../cloudstack/storage/resource/NfsSecondaryStorageResource.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java index 4980d97..68569ea 100644 --- a/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java +++ b/services/secondary-storage/server/src/org/apache/cloudstack/storage/resource/NfsSecondaryStorageResource.java @@ -463,7 +463,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S FormatInfo info = processor.process(destPath, null, templateUuid); TemplateLocation loc = new TemplateLocation(_storage, destPath); - loc.create(1, true, templateUuid); + loc.create(destData.getId(), true, templateUuid); loc.addFormat(info); loc.save(); TemplateProp prop = loc.getTemplateInfo(); @@ -553,7 +553,7 @@ public class NfsSecondaryStorageResource extends ServerResourceBase implements S FormatInfo info = processor.process(destPath, null, templateName); TemplateLocation loc = new TemplateLocation(_storage, destPath); - loc.create(1, true, destData.getName()); + loc.create(destData.getId(), true, destData.getName()); loc.addFormat(info); loc.save(); -- To stop receiving notification emails like this one, please contact ['"commits@cloudstack.apache.org" '].