summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2012-05-09 19:35:52 -0500
committerSol Jerome <sol.jerome@gmail.com>2012-05-09 19:35:52 -0500
commit3232277c559352a9f1398519729b1027d908f33d (patch)
tree7bde1b25eb85f856356ade2257ad83987005c8f5 /src
parent20479262fe2d860cddb3f1766e83d2a04b0b3a7f (diff)
downloadbcfg2-3232277c559352a9f1398519729b1027d908f33d.tar.gz
bcfg2-3232277c559352a9f1398519729b1027d908f33d.tar.bz2
bcfg2-3232277c559352a9f1398519729b1027d908f33d.zip
reports: Fix unpruned entries display
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/lib/Bcfg2/Server/Reports/reports/templates/config_items/item.html2
-rw-r--r--src/lib/Bcfg2/Server/Reports/updatefix.py2
2 files changed, 2 insertions, 2 deletions
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 %}
<!-- display extra directory entries -->
- {% if item.reason.unpruned %}
+ {% if item.reason.unpruned != '' %}
<div class='entry_list'>
<div class='entry_list_head'>
<h3>Extra entries found</h3>
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