smart_proxy_ansible 3.5.2 → 3.5.3

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
  SHA256:
3
- metadata.gz: 7b5d2745c11496676bc9a45ae0ff6d79bb30fa5e9c999928ceea7c6a41861d0a
4
- data.tar.gz: 3b5148e6164430a508661254056631ae82e1c7b69680c59fb7efa1e6ff8bc531
3
+ metadata.gz: dbbc81bb91b3c508c66bf0b2a609d1875638a4fa3263c3a029294c731f19dfca
4
+ data.tar.gz: f106c29bca9feb9971a6d3ea9ab880ddd3fe15f39abb19d7a1bb8ab98c8ca232
5
5
  SHA512:
6
- metadata.gz: 5d60cb3dce9bc1dc1b6785431f99a1020eb61b6e8661591ccbc505f9a13e24958998b5d231dc6e881e541e69af910c793f4b9d19c49f037887bf22632865071f
7
- data.tar.gz: 12f655b663252af5aeaab23bd5af509a73f6a3c0f9b09cb3c403fd995859e740bea4ceedbef52fedacffc48ea82a2919db146accf9160f0b342dc0bc946bdab0
6
+ metadata.gz: a6453b0c14b8b70b036fe7948c3de5c1d9151b6db0b2806e566a82d8a87c6aaeb05106a2eed2e4dc5a3184687c6c27f1abc0ca64b83d26e1141eda37ad055476
7
+ data.tar.gz: aa09094674c71ae7c2f7b542f2e1173e1f3c682d35edc18e8a408ca40f5f31de3057572a4c20a1d9253efcdb10efe0fca1d6e6cc29291470a1557deed702634d
@@ -68,7 +68,7 @@ module Proxy::Ansible
68
68
  def publish_exit_status(status)
69
69
  process_artifacts
70
70
  super
71
- @targets.each_key { |host| publish_exit_status_for(host, status) } if status != 0
71
+ @targets.each_key { |host| publish_exit_status_for(host, @exit_statuses[host]) } if status != 0
72
72
  end
73
73
 
74
74
  def initialize_command(*command)
@@ -156,6 +156,13 @@ module Proxy::Ansible
156
156
  else
157
157
  broadcast_data(event['stdout'] + "\n", 'stdout')
158
158
  end
159
+
160
+ # If the run ends early due to an error - fail all other tasks
161
+ if event['event'] == 'error'
162
+ @outputs.keys.select { |key| key.is_a? String }.each do |host|
163
+ @exit_statuses[host] = 4 if @exit_statuses[host].to_i == 0
164
+ end
165
+ end
159
166
  end
160
167
 
161
168
  def write_inventory
@@ -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.2'
5
+ VERSION = '3.5.3'
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.2
4
+ version: 3.5.3
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-02-27 00:00:00.000000000 Z
12
+ date: 2023-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake