Skip to content

Commit d9f91ee

Browse files
authored
Merge pull request #2007 from Accelerite/CLOUDSTACK-9834
CLOUDSTACK-9834: prepareTemplate API call doesn't work well with XenServer & Local SR (Db_exn.Uniqueness_constraint_violation)
2 parents 108361c + 1aa6a72 commit d9f91ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/hypervisors/xenserver/src/com/cloud/hypervisor/xenserver/resource/Xenserver625StorageProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ protected SR createFileSR(final Connection conn, final String path) {
9999
PBD pbd = null;
100100

101101
try {
102-
final String srname = hypervisorResource.getHost().getUuid() + path.trim();
102+
final String srname = path.trim();
103103
synchronized (srname.intern()) {
104104
final Set<SR> srs = SR.getByNameLabel(conn, srname);
105105
if (srs != null && !srs.isEmpty()) {

0 commit comments

Comments
 (0)