[0.30] mssql: fix incorrect patch version in windows_mssql_instance_info (#2139)

This commit is contained in:
Jan-Otto Kröpke
2025-07-20 08:16:17 +02:00
committed by GitHub
parent 1f0880b998
commit 716362d2ee

View File

@@ -27,7 +27,7 @@ func newMssqlInstance(key, name string) (mssqlInstance, error) {
_ = key.Close()
}(k)
patchVersion, _, err := k.GetStringValue("Version")
patchVersion, _, err := k.GetStringValue("PatchLevel")
if err != nil {
return mssqlInstance{}, fmt.Errorf("couldn't get version from registry: %w", err)
}