File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,10 @@ func (mc MainController) ProcessAllDrift(c *gin.Context) {
203
203
}
204
204
205
205
for _ , org := range orgs {
206
+ if org .DriftEnabled == false {
207
+ log .Printf ("Skipping org: %v because DriftEnabled=false" , org .ID )
208
+ continue
209
+ }
206
210
cron := org .DriftCronTab
207
211
matches , err := utils2 .MatchesCrontab (cron , time .Now ())
208
212
if err != nil {
Original file line number Diff line number Diff line change @@ -234,6 +234,9 @@ func (mc MainController) ProcessAllNotifications(c *gin.Context) {
234
234
}
235
235
236
236
for _ , org := range orgs {
237
+ if org .DriftEnabled == false {
238
+ continue
239
+ }
237
240
cron := org .DriftCronTab
238
241
matches , err := utils2 .MatchesCrontab (cron , time .Now ().Add ((- 7 * time .Minute )))
239
242
if err != nil {
You can’t perform that action at this time.
0 commit comments