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: d5dd45e67912f97dbde56b2cde8f2d1b910d7568
4
- data.tar.gz: 6a64a4e3966a427bfab7757ff6a4f65c4aa17dc6
3
+ metadata.gz: 91993bdbf5d7b57beaf729372f198489f527b9dc
4
+ data.tar.gz: c38b7da8850918c732402400939dfd39c0fd9a14
5
5
  SHA512:
6
- metadata.gz: f1b910fbd79d01a11f4f44afb0b0deb1a3daadc6c47136076ae7609f11fac4ddb6dae2849542e3a827bfe21924e41c65df5d500672bc103645bd1f4d4c673638
7
- data.tar.gz: 9fbfabed7a41a48b18d5748b9341681bc88ece78452922cb76d948758fb8b0dabc8f3d2640fcf9b77b517d86c3c14349a750a5808ed12345e0851f6dc720e652
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
@@ -1,3 +1,3 @@
1
1
  module ForemanSlack
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_slack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shlomi Zadok