From 3232277c559352a9f1398519729b1027d908f33d Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Wed, 9 May 2012 19:35:52 -0500 Subject: reports: Fix unpruned entries display Signed-off-by: Sol Jerome --- src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html | 2 +- src/lib/Bcfg2/Server/Reports/updatefix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/Bcfg2/Server/Reports') 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 cadc178a7..42c3e8349 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 @@ -93,7 +93,7 @@ div.entry_list h3 { {% endif %} - {% if item.reason.unpruned %} + {% if item.reason.unpruned != '' %}

Extra entries found

diff --git a/src/lib/Bcfg2/Server/Reports/updatefix.py b/src/lib/Bcfg2/Server/Reports/updatefix.py index d02e88b1a..b5e41b8f9 100644 --- a/src/lib/Bcfg2/Server/Reports/updatefix.py +++ b/src/lib/Bcfg2/Server/Reports/updatefix.py @@ -177,7 +177,7 @@ _fixes = [_merge_database_table_entries, 'alter table reports_reason add is_binary bool NOT NULL default False;', 'alter table reports_reason add is_sensitive bool NOT NULL default False;', _remove_table_column('reports_interaction', 'client_version'), - "alter table reports_reason add unpruned varchar(1280) not null default 'N/A';", + "alter table reports_reason add unpruned varchar(1280) not null default '';", ] # this will calculate the last possible version of the database -- cgit v1.2.3-1-g7c22