fix(scan): Failed to parse CentOS Stream (#1098)

This commit is contained in:
Shigechika AIKAWA
2021-01-06 14:57:19 +09:00
committed by GitHub
parent 4359503484
commit fcc4901a10

View File

@@ -52,7 +52,7 @@ func detectRedhat(c config.ServerInfo) (bool, osTypeInterface) {
release := result[2]
switch strings.ToLower(result[1]) {
case "centos", "centos linux":
case "centos", "centos linux", "centos stream":
cent := newCentOS(c)
cent.setDistro(config.CentOS, release)
return true, cent