Skip to content

Commit

Permalink
fix: prevent egctl config all panics (#1081)
Browse files Browse the repository at this point in the history
Signed-off-by: bitliu <bitliu@tencent.com>
  • Loading branch information
Xunzhuo committed Feb 28, 2023
1 parent ead74ab commit 7a373cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/cmd/egctl/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func allConfigCmd() *cobra.Command {
}

func runAllConfig(c *cobra.Command, args []string) error {
if len(args) == 0 {
return fmt.Errorf("pod name is required")
}

podName = args[0]

if podName == "" {
Expand Down

0 comments on commit 7a373cc

Please sign in to comment.