xenapi:populating hypervisor version in host state
This will be used in the scheduler to compare it to the image properties. Pulled out conversion of version string into integer to utils. Partially implements blueprint xen-support-for-hypervisor-versions Change-Id: Ib2eb91f6f18af6d39f9381daeff7ba9a24b4785a
This commit is contained in:
@@ -1131,3 +1131,7 @@ def is_none_string(val):
|
||||
return False
|
||||
|
||||
return val.lower() == 'none'
|
||||
|
||||
|
||||
def convert_version_to_int(version):
|
||||
return version[0] * 1000000 + version[1] * 1000 + version[2]
|
||||
|
||||
Reference in New Issue
Block a user