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 <[email protected]>
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
['"[email protected]" <[email protected]>'].