Commit 7c154abf authored by Eli's avatar Eli Committed by 老广

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")]
parent d012880a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment