Skip to content

Commit

Permalink
graph hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Nov 21, 2024
1 parent 75026e8 commit 0246ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/graph.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func NewGraphRunCommand(factory *providerfactory.ProviderFactory, scenarioOrches
if err != nil {
return err
}
if CheckFileExists(kubeconfig) == false {
if kubeconfig != "" && CheckFileExists(kubeconfig) == false {
return fmt.Errorf("file %s does not exist", kubeconfig)
}
alertsProfile, err := cmd.Flags().GetString("alerts-profile")
Expand Down

0 comments on commit 0246ca6

Please sign in to comment.