mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-03 18:16:37 +00:00
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")]
This commit is contained in:
parent
d012880a90
commit
7c154abf70
@ -72,7 +72,7 @@ def test_admin_user_connective_period():
|
|||||||
for i in summary['success']:
|
for i in summary['success']:
|
||||||
cache.set(i, '1', 2*60*60*60)
|
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)
|
cache.set(i, '0', 60*60*60)
|
||||||
return summary
|
return summary
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user