Source code for virttest.defaults

from autotest.client.shared import distro


DEFAULT_MACHINE_TYPE = "i440fx"
DEFAULT_GUEST_OS = None     # populated below


[docs]def get_default_guest_os_info(): """ Gets the default asset and variant information depending on host OS """ os_info = {'asset': 'jeos-19-64', 'variant': "JeOS.19"} detected = distro.detect() if detected.name == 'fedora' and int(detected.version) >= 20: os_info = {'asset': 'jeos-21-64', 'variant': 'JeOS.21'} return os_info
DEFAULT_GUEST_OS = get_default_guest_os_info()['variant']