From a990756912ed1a4f52dd5291d5688e2798b82451 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 19 Dec 2014 11:28:49 +0000 Subject: [PATCH] Feature: Also export type="" in stats.xml's s --- src/stats.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stats.c b/src/stats.c index e4096abb..aa0dc43a 100644 --- a/src/stats.c +++ b/src/stats.c @@ -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)