mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00
crihook: fix ineffective Errorf call
Returned error instead of calling errors.Errorf with no effect.
This commit is contained in:
parent
3dd8002e88
commit
a6b3a217e8
@ -167,7 +167,7 @@ func (he *hookEnv) getFPGAParams(config *Config) ([]fpgaParams, error) {
|
||||
for num, region := range regionEnv {
|
||||
afu, ok := afuEnv[num]
|
||||
if !ok {
|
||||
errors.Errorf("Environment variable %s%s is not set", fpgaAfuEnvPrefix, num)
|
||||
return nil, errors.Errorf("Environment variable %s%s is not set", fpgaAfuEnvPrefix, num)
|
||||
}
|
||||
|
||||
// Find a device suitable for the region/interface id
|
||||
|
Loading…
Reference in New Issue
Block a user