From 7c154abf707c3f9b0729aa5feebf89c33e38a435 Mon Sep 17 00:00:00 2001 From: Eli Date: Thu, 13 Jul 2017 14:00:17 +0800 Subject: [PATCH] fix bug: variable i should be the host name (#538) fix bug: variable i is not the host name, because summary['failed'] is something like [("hostname1", "error message 1"),("hostname1", "error message 1")] --- apps/assets/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/assets/tasks.py b/apps/assets/tasks.py index 68b0cafca..2c5267281 100644 --- a/apps/assets/tasks.py +++ b/apps/assets/tasks.py @@ -72,7 +72,7 @@ def test_admin_user_connective_period(): for i in summary['success']: cache.set(i, '1', 2*60*60*60) - for i in summary['failed']: + for i, msg in summary['failed']: cache.set(i, '0', 60*60*60) return summary