Skip to content

Commit

Permalink
Fix service CMD to return an error if device discovery failed
Browse files Browse the repository at this point in the history
Signed-off-by: Yury Kulazhenkov <[email protected]>
  • Loading branch information
ykulazhenkov committed Apr 16, 2024
1 parent 2d2e5a4 commit 2e4e3ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/sriov-network-config-daemon/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func callPlugin(setupLog logr.Logger, phase string, conf *systemd.SriovConfig, h

nodeState, err := getNetworkNodeState(setupLog, conf, hostHelpers)
if err != nil {
return nil
return err
}
_, _, err = configPlugin.OnNodeStateChange(nodeState)
if err != nil {
Expand Down

0 comments on commit 2e4e3ab

Please sign in to comment.