保留初始化通知配置并保护新通知凭据
This commit is contained in:
1 parent
efb405ea11
commit
3d1afab22e
7 files changed
+458
-23
No files matched your search
@@ -174,7 +174,7 @@ func Apply(cfg *config.Config, input Input) error {
|
||||
cfg.Notification.RetryCount = input.EmailRetryCount
|
||||
}
|
||||
if input.EmailRetryIntervalsSecs != nil {
|
||||
cfg.Notification.RetryIntervalsSecs = append([]int(nil), input.EmailRetryIntervalsSecs...)
|
||||
cfg.Notification.RetryIntervalsSecs = append([]int{}, input.EmailRetryIntervalsSecs...)
|
||||
}
|
||||
cfg.Notification.Recipients = cleanRecipients(input.EmailRecipients)
|
||||
if len(cfg.Notification.Recipients) == 0 {
|
||||
|
||||
Reference in new issue
Block a user