Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
import javax.inject.Inject;
import javax.naming.ConfigurationException;

import org.apache.log4j.Logger;

import org.apache.cloudstack.acl.SecurityChecker;
import org.apache.cloudstack.affinity.AffinityGroup;
import org.apache.cloudstack.affinity.AffinityGroupService;
Expand Down Expand Up @@ -84,7 +86,6 @@
import org.apache.cloudstack.storage.datastore.db.PrimaryDataStoreDao;
import org.apache.cloudstack.storage.datastore.db.StoragePoolDetailsDao;
import org.apache.cloudstack.storage.datastore.db.StoragePoolVO;
import org.apache.log4j.Logger;

import com.cloud.alert.AlertManager;
import com.cloud.api.ApiDBUtils;
Expand Down Expand Up @@ -2353,6 +2354,10 @@ public DiskOffering createDiskOffering(CreateDiskOfferingCmd cmd) {
throw new InvalidParameterValueException("Disksize is required for a non-customized disk offering");
}

if (isCustomized && numGibibytes != null) {
throw new InvalidParameterValueException("Disksize is not allowed for a customized disk offering");
}

boolean localStorageRequired = false;
String storageType = cmd.getStorageType();
if (storageType != null) {
Expand Down