def print_plugin(name, forced=False):
    """
    Print information about a plugin

    :param name: name of the plugin
    :type name: string
    :param forced: use forced_results instead of last_results
    :type forced: bool
    """

    plugin = smokerd.pluginmgr.get_plugin(name)
    plugin.collect_new_result()

    # Format plugin result
    plugin_result = {
        'lastResult': standardized_api_list(plugin.get_last_result()),
        'links': {
            'self': name % '/plugins/%s',
        },
        'name': name,
        'nextRun': next_run_iso_format(plugin.next_run),
        'parameters': plugin.params
    }

    if forced:
        if not plugin.forced_result:
            raise exceptions.InProgress
        plugin_result['forcedResult'] = plugin.forced_result
    return {'plugin': plugin_result}
dataset/ETHPy150Open gooddata/smoker/smoker/server/restserver.py/print_plugin/swapped operands of `%`