Skip to content

Commit

Permalink
Require one driver at least
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Feb 21, 2024
1 parent 1eb0db4 commit adb6cad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/k8s-netperf/k8s-netperf.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ var rootCmd = &cobra.Command{
fmt.Println("OS/Arch:", cmdVersion.OsArch)
os.Exit(0)
}

if !(uperf || netperf || iperf3) {
log.Fatalf("😭 At least one driver needs to be enabled")
}
uid := ""
if len(id) > 0 {
uid = id
Expand Down Expand Up @@ -205,7 +207,7 @@ var rootCmd = &cobra.Command{
if err == nil {
sr.Metadata.ClusterMetadata = metadata
} else {
log.Error(" issue getting common metadata using go-commons")
log.Error("Issue getting common metadata using go-commons")
}
}

Expand Down

0 comments on commit adb6cad

Please sign in to comment.