Skip to content

Commit 8627a03

Browse files
authored
Merge pull request #993 from ykulazhenkov/pr-fix-main-exit-code
fix: exit with non-zero code on error in config daemon
2 parents f8a735e + 8bc986f commit 8627a03

File tree

1 file changed

+2
-0
lines changed
  • cmd/sriov-network-config-daemon

1 file changed

+2
-0
lines changed

cmd/sriov-network-config-daemon/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package main
1717

1818
import (
1919
"flag"
20+
"os"
2021

2122
"github.com/spf13/cobra"
2223
"sigs.k8s.io/controller-runtime/pkg/log"
@@ -44,5 +45,6 @@ func init() {
4445
func main() {
4546
if err := rootCmd.Execute(); err != nil {
4647
log.Log.Error(err, "error executing sriov-network-config-daemon")
48+
os.Exit(1)
4749
}
4850
}

0 commit comments

Comments
 (0)