mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
os minor should default to 0 (#513)
This commit is contained in:
committed by
GitHub
parent
347d462d7f
commit
4c72573936
@@ -123,7 +123,7 @@ func getSystemPackageTemplateMap(pkg collect.SystemPackage, osName string, osVer
|
||||
osVersionParts := strings.Split(osVersion, ".")
|
||||
osVersionMajor, _ := strconv.ParseInt(osVersionParts[0], 10, 64)
|
||||
|
||||
var osVersionMinor int64 = -1
|
||||
var osVersionMinor int64
|
||||
if len(osVersionParts) > 1 {
|
||||
osVersionMinor, _ = strconv.ParseInt(osVersionParts[1], 10, 64)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user