mirror of
https://github.com/prometheus-community/windows_exporter.git
synced 2026-02-08 05:56:37 +00:00
[0.30] mssql: fix incorrect patch version in windows_mssql_instance_info (#2139)
This commit is contained in:
@@ -27,7 +27,7 @@ func newMssqlInstance(key, name string) (mssqlInstance, error) {
|
|||||||
_ = key.Close()
|
_ = key.Close()
|
||||||
}(k)
|
}(k)
|
||||||
|
|
||||||
patchVersion, _, err := k.GetStringValue("Version")
|
patchVersion, _, err := k.GetStringValue("PatchLevel")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return mssqlInstance{}, fmt.Errorf("couldn't get version from registry: %w", err)
|
return mssqlInstance{}, fmt.Errorf("couldn't get version from registry: %w", err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user