def _check_osvariant_valid(os_type, os_variant): return bool( _check_ostype_valid(os_type) and os_variant in Guest.list_os_variants(os_type))
def _check_osvariant_valid(os_type, os_variant): return bool(_check_ostype_valid(os_type) and os_variant in Guest.list_os_variants(os_type))
def _check_ostype_valid(os_type): return bool(os_type in Guest.list_os_types())