feat(slack): add slack notification for created backups
This commit is contained in:
parent
ac327d5677
commit
398b6bf0c1
@ -136,6 +136,13 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ctx.SlackContext != nil {
|
||||||
|
err = ctx.SlackContext.SendEvent(fmt.Sprintf("Successfully created Backup for Volumes %s", strings.Join(volumeIDs, ", ")), log.InfoLevel)
|
||||||
|
if err != nil {
|
||||||
|
handleError(ctx, err, false)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func handleError(ctx snapshotterContext, err error, fatal bool) {
|
func handleError(ctx snapshotterContext, err error, fatal bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user