mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
=CLOUDSTACK-3102 ResourceDetail API - If you add detail for any resource other than volume and nic then throw an exception
This commit is contained in:
parent
a2dc4b1ca9
commit
2a20ac21ac
@ -215,9 +215,11 @@ public class ResourceMetaDataManagerImpl extends ManagerBase implements Resource
|
||||
if(resourceType == TaggedResourceType.Volume){
|
||||
VolumeDetailVO v = new VolumeDetailVO(id, key, value);
|
||||
_volumeDetailDao.persist(v);
|
||||
}else {
|
||||
}else if (resourceType == TaggedResourceType.Nic){
|
||||
NicDetailVO n = new NicDetailVO(id, key, value);
|
||||
_nicDetailDao.persist(n);
|
||||
}else{
|
||||
throw new InvalidParameterValueException("The resource type " + resourceType + " is not supported by the API yet");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user