mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-7267: For LXC volumes, show unsupported operation error for template creation from ROOT volume
This commit is contained in:
parent
99010f463b
commit
e427d0004c
|
|
@ -1560,6 +1560,9 @@ public class TemplateManagerImpl extends ManagerBase implements TemplateManager,
|
|||
}
|
||||
|
||||
hyperType = _volumeDao.getHypervisorType(volumeId);
|
||||
if (HypervisorType.LXC.equals(hyperType)) {
|
||||
throw new InvalidParameterValueException("Template creation is not supported for LXC volume: " + volumeId);
|
||||
}
|
||||
} else { // create template from snapshot
|
||||
snapshot = _snapshotDao.findById(snapshotId);
|
||||
if (snapshot == null) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue