From 947a4d5d82cdd97245c42462e91feb5eaaf13377 Mon Sep 17 00:00:00 2001 From: naiba Date: Tue, 4 May 2021 10:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=B7=EF=B8=8F=20=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E5=AF=B9=20f2fs=20=E7=9A=84=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/agent/monitor/monitor.go | 2 +- cmd/dashboard/controller/oauth2.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/agent/monitor/monitor.go b/cmd/agent/monitor/monitor.go index d7b0801..3d4dc88 100644 --- a/cmd/agent/monitor/monitor.go +++ b/cmd/agent/monitor/monitor.go @@ -19,7 +19,7 @@ import ( var netInSpeed, netOutSpeed, netInTransfer, netOutTransfer, lastUpdate uint64 var expectDiskFsTypes = []string{ - "apfs", "ext4", "ext3", "ext2", "reiserfs", "jfs", "btrfs", "fuseblk", "zfs", "simfs", "ntfs", "fat32", "exfat", "xfs", + "apfs", "ext4", "ext3", "ext2", "f2fs", "reiserfs", "jfs", "btrfs", "fuseblk", "zfs", "simfs", "ntfs", "fat32", "exfat", "xfs", } var excludeNetInterfaces = []string{ "lo", "tun", "docker", "veth", "br-", "vmbr", "vnet", "kube", diff --git a/cmd/dashboard/controller/oauth2.go b/cmd/dashboard/controller/oauth2.go index eefa0bb..a57cb20 100644 --- a/cmd/dashboard/controller/oauth2.go +++ b/cmd/dashboard/controller/oauth2.go @@ -79,7 +79,7 @@ func (oa *oauth2controller) callback(c *gin.Context) { var client *GitHubAPI.Client if err == nil { oc := oauth2Config.Client(ctx, otk) - if dao.Conf.Oauth2.Type == "gitee" { + if dao.Conf.Oauth2.Type == model.ConfigTypeGitee { client, err = GitHubAPI.NewEnterpriseClient("https://gitee.com/api/v5/", "https://gitee.com/api/v5/", oc) } else { client = GitHubAPI.NewClient(oc)