mirror of
https://github.com/luscis/openlan.git
synced 2025-10-06 17:17:00 +08:00
fix: yum install failed for centos like.
This commit is contained in:
@@ -9,8 +9,10 @@ import (
|
||||
|
||||
func TestSwitch_LoadPass(t *testing.T) {
|
||||
sw := &Switch{}
|
||||
sw.LoadPass("../../.password.no")
|
||||
sw.LoadPass("../../packaging/resource/password.example")
|
||||
cache.User.SetFile("../../.password.no")
|
||||
sw.LoadPass()
|
||||
cache.User.SetFile("../../packaging/resource/password.example")
|
||||
sw.LoadPass()
|
||||
for user := range cache.User.List() {
|
||||
if user == nil {
|
||||
break
|
||||
|
Reference in New Issue
Block a user