Fix an issue when adding image to simulator
@@ -40,6 +40,11 @@ public class SimulatorBackupStorage extends BackupStorageBase {
completion.success();
}
+ @Override
+ protected void exceptionIfImageSizeGreaterThanAvailableCapacity(String url) {
+ // To override the behavior of the base class, thus avoid real HEAD request.
+ }
+
@Override
protected void handle(GetImageSizeOnBackupStorageMsg msg) {
GetImageSizeOnBackupStorageReply reply = new GetImageSizeOnBackupStorageReply();
