Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Dec 5, 2024
1 parent 06ba896 commit e6d8e76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/kubehound/dumper.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ var (
PreRunE: func(cobraCmd *cobra.Command, args []string) error {
viper.Set(config.CollectorFileDirectory, args[0])

return cmd.InitializeKubehoundConfig(cobraCmd.Context(), "", true, true)
return cmd.InitializeKubehoundConfig(cobraCmd.Context(), cfgFile, true, true)
},
RunE: func(cobraCmd *cobra.Command, args []string) error {
// Passing the Kubehound config from viper
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubehound/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var (
cobraCmd.MarkFlagRequired("cluster") //nolint: errcheck
}

return cmd.InitializeKubehoundConfig(cobraCmd.Context(), "", false, true)
return cmd.InitializeKubehoundConfig(cobraCmd.Context(), cfgFile, false, true)
},
RunE: func(cobraCmd *cobra.Command, args []string) error {
// Passing the Kubehound config from viper
Expand Down

0 comments on commit e6d8e76

Please sign in to comment.