def get_os_by_image_meta(self, os_release):
        LOG.debug('--- Getting operating system data by image metadata ---')
        if os_release:
            LOG.debug('Looks like {0} is going to be provisioned'.
                      format(os_release))
            try:
                OS = getattr(objects, os_release['name'])
                os = OS(repos=None, packages=None, major=os_release['major'],
                        minor=os_release['minor'])
                return os
            except (__HOLE__, KeyError):
                LOG.warning('Cannot guess operating system release '
                            'from image metadata')
dataset/ETHPy150Open openstack/bareon/bareon/drivers/data/nailgun.py/Nailgun.get_os_by_image_meta