Commit a9907569 authored by Philipp Schafft's avatar Philipp Schafft 🦁

Feature: Also export type="" in stats.xml's <role>s

parent 7093e195
......@@ -878,6 +878,8 @@ static xmlNodePtr _dump_stats_to_doc (xmlNodePtr root, const char *show_mount, i
snprintf(idbuf, sizeof(idbuf), "%lu", auth->id);
role = xmlNewTextChild(authentication, NULL, XMLSTR("role"), NULL);
xmlSetProp(role, XMLSTR("id"), XMLSTR(idbuf));
if (auth->type)
xmlSetProp(role, XMLSTR("type"), XMLSTR(auth->type));
if (auth->role)
xmlSetProp(role, XMLSTR("name"), XMLSTR(auth->role));
if (auth->management_url)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment