Skip to content

Commit c0a4392

Browse files
Fix volume copy from primary to primary in simulator (apache#11836)
1 parent f71d3a8 commit c0a4392

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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
@@ -270,7 +270,11 @@ public Answer forgetObject(ForgetObjectCmd cmd) {
270270

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

276280
@Override

0 commit comments

Comments
 (0)