From 10eb57597eecdb42e931a5f817af58b508e2fff9 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Fri, 27 Apr 2012 18:51:15 -0500 Subject: DBStats: Add unpruned entry reporting (#659) Path type='directory' entries previously had no 'reason' associated with their 'dirty' state. This change adds a database field for unpruned entries which are present in a pruned directory and displays that list in the web reporting interface. There is also a change made to the POSIX client tool which forces it to display the extra entry list when running in interactive mode without debugging enabled. Signed-off-by: Sol Jerome --- .../Reports/reports/templates/config_items/item.html | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html') diff --git a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html index cc99ef503..cadc178a7 100644 --- a/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html +++ b/src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load split %} {% load syntax_coloring %} @@ -91,6 +92,20 @@ div.entry_list h3 { {% endif %} + + {% if item.reason.unpruned %} +
+
+

Extra entries found

+
+ + {% for unpruned_item in item.reason.unpruned|split %} + + {% endfor %} +
{{ unpruned_item }}
+
+ {% endif %} +
-- cgit v1.2.3-1-g7c22