foreman_slack 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91993bdbf5d7b57beaf729372f198489f527b9dc
|
4
|
+
data.tar.gz: c38b7da8850918c732402400939dfd39c0fd9a14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f8f1446c6a6016be4079451ab0b2edbcf00b9fd93bd8f7652b77dd79b9dd4e677b83f99bead8540912a38a7c695e95acb973d252a95cb8dd59816078698ba324
|
7
|
+
data.tar.gz: a812196bda217d2cdfab3a46f1556f74cbdfd3e506ece7b01c4157bb8587ed64ace8c38b29131a6ceb5d6dc485189aab53d8b784d4caa10ac726fb104b5e6f9b
|
@@ -8,12 +8,12 @@ module ForemanSlack
|
|
8
8
|
|
9
9
|
private
|
10
10
|
|
11
|
-
def notify_on_report_error_with_slack
|
11
|
+
def notify_on_report_error_with_slack(mail_error_state)
|
12
12
|
if Setting[:notify_slack_puppet_error] && report.error?
|
13
13
|
slack = ForemanSlack::SlackNotify.new
|
14
14
|
slack.notify(_('%s is in error state. Please check logs') % name)
|
15
15
|
end
|
16
|
-
notify_on_report_error_without_slack
|
16
|
+
notify_on_report_error_without_slack(mail_error_state)
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|