dom0: Disallow directly setting kernel version for template-based VM
This commit is contained in:
parent
01a5046e54
commit
a1ef7d01ea
@ -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:"
|
||||
|
Loading…
Reference in New Issue
Block a user