Compare commits
1 commit
master
...
allow_help
Author | SHA1 | Date | |
---|---|---|---|
|
07e7323cb7 |
|
@ -217,6 +217,10 @@ func NewLapiCmd() *cobra.Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
func AddContext(key string, values []string) error {
|
func AddContext(key string, values []string) error {
|
||||||
|
if err := exprhelpers.Init(nil); err != nil {
|
||||||
|
return fmt.Errorf(err.Error())
|
||||||
|
}
|
||||||
|
|
||||||
if err := alertcontext.ValidateContextExpr(key, values); err != nil {
|
if err := alertcontext.ValidateContextExpr(key, values); err != nil {
|
||||||
return fmt.Errorf("invalid context configuration :%s", err)
|
return fmt.Errorf("invalid context configuration :%s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue