Skip to content

Commit

Permalink
Merge pull request #635 from elezar/fix-conditional
Browse files Browse the repository at this point in the history
Fix conditional statement for creating NFD client
  • Loading branch information
elezar authored Apr 11, 2024
2 parents c8efcdc + ca35bbf commit bd58832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gpu-feature-discovery/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ func start(c *cli.Context, cfg *Config) error {
vgpul := vgpu.NewVGPULib(vgpu.NewNvidiaPCILib())

var clientSets flags.ClientSets
if config.Flags.UseNodeFeatureAPI == nil || !*config.Flags.UseNodeFeatureAPI {
if config.Flags.UseNodeFeatureAPI != nil && *config.Flags.UseNodeFeatureAPI {
cs, err := cfg.kubeClientConfig.NewClientSets()
if err != nil {
return fmt.Errorf("failed to create clientsets: %w", err)
Expand Down

0 comments on commit bd58832

Please sign in to comment.