plugins/python: fix confusing version display
IO/Group/Policy Python API version is displayed instead of sudo version, because that is not very meaningful in this context. They are only displayed in verbose mode. Example plugins express it more concrete that they are displaying their version, not the API version.
This commit is contained in:

committed by
Todd C. Miller

parent
87d76f4bbc
commit
2ee1dd3ec3
@@ -401,7 +401,6 @@ python_plugin_show_version(struct PluginContext *plugin_ctx, const char *python_
|
||||
{
|
||||
debug_decl(python_plugin_show_version, PYTHON_DEBUG_CALLBACKS);
|
||||
|
||||
py_sudo_log(SUDO_CONV_INFO_MSG, "Python language plugin version %s\n", PACKAGE_VERSION);
|
||||
debug_return_int(python_plugin_api_rc_call(plugin_ctx, python_callback_name,
|
||||
Py_BuildValue("(i)", is_verbose)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user