From 2e4e3ab1d2845220307959f5603a9db65852024c Mon Sep 17 00:00:00 2001 From: Yury Kulazhenkov Date: Tue, 9 Apr 2024 14:44:30 +0300 Subject: [PATCH] Fix service CMD to return an error if device discovery failed Signed-off-by: Yury Kulazhenkov --- cmd/sriov-network-config-daemon/service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/sriov-network-config-daemon/service.go b/cmd/sriov-network-config-daemon/service.go index 1917ed63c..88b60036e 100644 --- a/cmd/sriov-network-config-daemon/service.go +++ b/cmd/sriov-network-config-daemon/service.go @@ -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 {