def get_metadata_service():
    # Return the first service that loads correctly
    cl = classloader.ClassLoader()
    for class_path in CONF.metadata_services:
        service = cl.load_class(class_path)()
        try:
            if service.load():
                return service
        except Exception as ex:
            LOG.error(class_path % "Failed to load metadata service '%s'")
            LOG.exception(ex)
    raise exception.CloudbaseInitException("No available service found")
dataset/ETHPy150Open openstack/cloudbase-init/cloudbaseinit/metadata/factory.py/get_metadata_service/swapped operands of `%`