smart_proxy_ansible 3.5.3 → 3.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dbbc81bb91b3c508c66bf0b2a609d1875638a4fa3263c3a029294c731f19dfca
4
- data.tar.gz: f106c29bca9feb9971a6d3ea9ab880ddd3fe15f39abb19d7a1bb8ab98c8ca232
3
+ metadata.gz: aeca31386ddf249d6cbce37e14bac2be1217132e9d7700595d1a98bfce4f9edb
4
+ data.tar.gz: d46c8e35fe05c3d2808226eda74a14b26cf77a5bfcc66f494d6e680f21893173
5
5
  SHA512:
6
- metadata.gz: a6453b0c14b8b70b036fe7948c3de5c1d9151b6db0b2806e566a82d8a87c6aaeb05106a2eed2e4dc5a3184687c6c27f1abc0ca64b83d26e1141eda37ad055476
7
- data.tar.gz: aa09094674c71ae7c2f7b542f2e1173e1f3c682d35edc18e8a408ca40f5f31de3057572a4c20a1d9253efcdb10efe0fca1d6e6cc29291470a1557deed702634d
6
+ metadata.gz: a64fc645a04b2348cb94e9975a059ff72d053de4c0f95d256f10c2219eb68f691fb0abdcb1d08d2893467cd607ab49cd474a1f1c633718c8ef6c46c256c2a6ca
7
+ data.tar.gz: e093cc229af6dffb46ead2c4d7118d53e87d3a78ab67d1d5256130b95ae95b9beccb89186d95365e789abcbc99df67d661b1cc4a6d90dd4e90ffa3ec571b24bc
@@ -143,13 +143,14 @@ module Proxy::Ansible
143
143
  if event['event'] == 'playbook_on_stats'
144
144
  failures = event.dig('event_data', 'failures') || {}
145
145
  unreachable = event.dig('event_data', 'dark') || {}
146
+ rescued = event.dig('event_data', 'rescued') || {}
146
147
  header, *rows = event['stdout'].strip.lines.map(&:chomp)
147
148
  @outputs.keys.select { |key| key.is_a? String }.each do |host|
148
149
  line = rows.find { |row| row =~ /#{host}/ }
149
150
  publish_data_for(host, [header, line].join("\n"), 'stdout')
150
151
 
151
152
  # If the task has been rescued, it won't consider a failure
152
- if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0 && unreachable[host].to_i <= 0
153
+ if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0 && unreachable[host].to_i <= 0 && rescued[host].to_i > 0
153
154
  publish_exit_status_for(host, 0)
154
155
  end
155
156
  end
@@ -2,6 +2,6 @@ module Proxy
2
2
  # Version, this allows the proxy and other plugins know
3
3
  # what version of the Ansible plugin is running
4
4
  module Ansible
5
- VERSION = '3.5.3'
5
+ VERSION = '3.5.4'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-03-07 00:00:00.000000000 Z
12
+ date: 2023-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake