':param version: (int) Converted from version string 1.4.0 => int 140'

@staticmethod
def convert_version_to_int(version):

    if isinstance(version, int):
        return version
    try:
        a = re.findall('^(\\d+)\\.?(\\d+)\\.?(\\d+)\\-?', version)[0]
        int_ver = ''.join(a)
    except:
        raise error.AutotestError(("Wrong    version    format    '%s'" % version))
    return int_ver
