Skip to content

Commit e8cf62a

Browse files
committed
fix for vm details not getting restored
Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 8038dd6 commit e8cf62a

2 files changed

Lines changed: 5 additions & 201 deletions

File tree

plugins/integrations/veeam-control-service/src/main/java/org/apache/cloudstack/veeam/api/converter/UserVmJoinVOToVmConverter.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,15 +165,17 @@ public static Vm toVm(final UserVmJoinVO src,
165165
dst.setCpuProfile(Ref.of(
166166
basePath + ApiRouteHandler.BASE_ROUTE + "/cpuprofiles/" + src.getServiceOfferingUuid(),
167167
src.getServiceOfferingUuid()));
168-
if (allContent) {
169-
dst.setInitialization(getOvfInitialization(dst, src));
170-
}
171168

172169
dst.setAccountId(src.getAccountUuid());
173170
dst.setAffinityGroupId(src.getAffinityGroupUuid());
174171
dst.setUserDataId(src.getUserDataUuid());
175172
dst.setDetails(details);
176173

174+
// Keep at last
175+
if (allContent) {
176+
dst.setInitialization(getOvfInitialization(dst, src));
177+
}
178+
177179
return dst;
178180
}
179181

plugins/integrations/veeam-control-service/src/main/resources/test-ovf.xml

Lines changed: 0 additions & 198 deletions
This file was deleted.

0 commit comments

Comments
 (0)