dom0: Disallow directly setting kernel version for template-based VM

This commit is contained in:
Marek Marczykowski 2011-07-02 00:24:37 +02:00
parent 01a5046e54
commit a1ef7d01ea

View File

@ -175,6 +175,10 @@ def set_nonupdateable(vms, vm, args):
return True
def set_kernel(vms, vm, args):
if vm.template_vm is not None:
print "Cannot set kernel for template-based VM. Set it for template instead."
return False
if len (args) != 1:
print "Missing kernel version argument!"
print "Possible values:"