Commit 3f2eba25 authored by Miguel Di Ciurcio Filho's avatar Miguel Di Ciurcio Filho Committed by Guido Trotter
Browse files

kvm: Make _GetKVMVersion() return integers

The current code returns the major, minor and rev portions of the version of
KVM as strings. Returning them as integers makes it easier to compare.
Signed-off-by: default avatarMiguel Di Ciurcio Filho <>
Signed-off-by: default avatarGuido Trotter <>
Reviewed-by: default avatarGuido Trotter <>
parent 3c8a73a4
......@@ -836,7 +836,9 @@ class KVMHypervisor(hv_base.BaseHypervisor):
match =[0])
if not match:
return None
return (,,,
return (, int(, int(,
def StopInstance(self, instance, force=False, retry=False, name=None):
"""Stop an instance.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment