Skip to content

Commit 7c07466

Browse files
Fix volume copy from primary to primary in simulator
1 parent 0ca63f3 commit 7c07466

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
@@ -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)