Skip to content

Commit 92ef6d8

Browse files
harikrishna-patnaladhslove
authored andcommitted
Fix volume copy from primary to primary in simulator (apache#11836)
1 parent cf15de0 commit 92ef6d8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

plugins/hypervisors/simulator/src/main/java/com/cloud/resource/SimulatorStorageProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,11 @@ public Answer forgetObject(ForgetObjectCmd cmd) {
271271

272272
@Override
273273
public Answer copyVolumeFromPrimaryToPrimary(CopyCommand cmd) {
274-
return null;
274+
VolumeObjectTO volume = new VolumeObjectTO();
275+
volume.setPath(UUID.randomUUID().toString());
276+
volume.setSize(100);
277+
volume.setFormat(Storage.ImageFormat.RAW);
278+
return new CopyCmdAnswer(volume);
275279
}
276280

277281
@Override

0 commit comments

Comments
 (0)