1
0
mirror of https://github.com/google/cadvisor.git synced 2021-05-12 18:32:21 +03:00

do not initialize libipmctl package when getting an error from nvm_init()

Signed-off-by: Paweł Szulik <pawel.szulik@intel.com>
This commit is contained in:
Paweł Szulik
2020-11-10 14:30:25 +01:00
parent ca49536c2a
commit 755568416c

View File

@@ -40,6 +40,7 @@ func init() {
// Unfortunately klog does not seem to work here. I believe it's better to
// output information using fmt rather then let it disappear silently.
fmt.Printf("libipmctl initialization failed with status %d", cErr)
return
}
isNVMLibInitialized = true
}