diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2014-05-21 03:33:18 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2014-06-18 14:11:59 +0200 |
commit | 2b04958c00d5e0aad95641f8ab5e12ee841169e3 (patch) | |
tree | d98fb9b48e88b09cfb1b0ce6e83ba21b81ef3087 /src/lib | |
parent | 6edabcee69bcc04c37a28be41a8ecc2e83dbe2a1 (diff) | |
download | bcfg2-2b04958c00d5e0aad95641f8ab5e12ee841169e3.tar.gz bcfg2-2b04958c00d5e0aad95641f8ab5e12ee841169e3.tar.bz2 bcfg2-2b04958c00d5e0aad95641f8ab5e12ee841169e3.zip |
Reporting: add column stale
Add a new column "stale", that displays if a host is stale or not. It could be
determined by parsing the date column, but it would be more convenient to
have a separate column for that.
Diffstat (limited to 'src/lib')
-rwxr-xr-x | src/lib/Bcfg2/Reporting/Reports.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Reporting/Reports.py b/src/lib/Bcfg2/Reporting/Reports.py index 35c09a7e1..219d74584 100755 --- a/src/lib/Bcfg2/Reporting/Reports.py +++ b/src/lib/Bcfg2/Reporting/Reports.py @@ -43,6 +43,8 @@ def print_fields(fields, client, fmt, extra=None): fdata.append(client.current_interaction.extra_count) elif field == 'bad': fdata.append((client.current_interaction.bad_count)) + elif field == 'stale': + fdata.append(client.current_interaction.isstale()) else: try: fdata.append(getattr(client, field)) |