mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CID 1324349: conditionally return -1 or the dc id for the volume
This commit is contained in:
parent
5cacd99570
commit
24500bd0e4
@ -239,7 +239,8 @@ public abstract class BaseImageStoreDriverImpl implements ImageStoreDriver {
|
||||
result.setResult(answer.getErrorString());
|
||||
caller.complete(result);
|
||||
String msg = "Failed to upload volume: " + obj.getUuid() + " with error: " + answer.getErrorString();
|
||||
_alertMgr.sendAlert(AlertManager.AlertType.ALERT_TYPE_UPLOAD_FAILED, volStoreVO.getZoneId(), null, msg, msg);
|
||||
_alertMgr.sendAlert(AlertManager.AlertType.ALERT_TYPE_UPLOAD_FAILED,
|
||||
(volStoreVO == null ? -1L : volStoreVO.getZoneId()), null, msg, msg);
|
||||
s_logger.error(msg);
|
||||
} else if (answer.getDownloadStatus() == VMTemplateStorageResourceAssoc.Status.DOWNLOADED) {
|
||||
CreateCmdResult result = new CreateCmdResult(null, null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user