From d283c8caf077fb4c4712a33639c31d8889d83366 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Sun, 3 Jul 2022 02:43:58 +0200 Subject: scripts/filter-active.py: Use parse_status to get state filter-active.py currently takes the first word of the status, as the overall state. This is not always correct. Use parse_status to get it instead. --- scripts/filter-active.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/filter-active.py b/scripts/filter-active.py index dd164ab0..943b3bb1 100755 --- a/scripts/filter-active.py +++ b/scripts/filter-active.py @@ -104,7 +104,7 @@ if __name__ == '__main__': sys.stdout.write("%*s:" % (name_width, i.name)) for release in list_releases: status = i.status(release) or "unknown" - status_short = status.split(' ')[0] + status_short = parse_status(status)['state'] if options.color and status_short in status_color: color_on = status_color[status_short] else: -- cgit v1.2.3