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")]
pull/542/head
Eli 7 years ago committed by 老广
parent d012880a90
commit 7c154abf70

@ -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

Loading…
Cancel
Save