Skip to content

Commit

Permalink
fix error failed to stream with context for silence add command
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmitul9 committed Jun 27, 2024
1 parent bcd870d commit cf55d19
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/alerts/silence/add_silence.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ func NewCmdAddSilence() *cobra.Command {
}

cmd.Flags().StringSliceVar(&addSilenceCmd.alertID, "alertname", []string{}, "alertname (comma-separated)")
cmd.Flags().StringVarP(&addSilenceCmd.comment, "comment", "c", "Adding silence using the osdctl alert command", "add comment about silence")
cmd.Flags().StringVarP(&addSilenceCmd.duration, "duration", "d", "15d", "adding duration for silence") //default duration set to 15 days
cmd.Flags().BoolVarP(&addSilenceCmd.all, "all", "a", false, "adding silences for all alert")
cmd.Flags().StringVarP(&addSilenceCmd.comment, "comment", "c", "silence alert", "add comment about silence")
cmd.Flags().StringVarP(&addSilenceCmd.duration, "duration", "d", "15d", "add duration for silence") //default duration set to 15 days
cmd.Flags().BoolVarP(&addSilenceCmd.all, "all", "a", false, "add silences for all alert")

return cmd
}
Expand Down

0 comments on commit cf55d19

Please sign in to comment.