foreman_ansible_core 4.1.0 → 4.1.1

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: cc5b524830b6cf92b7715fdc19d9bc65e9e863b247ecb3dbe2f35aa7c8ee4e46
4
- data.tar.gz: e3c669c0942e9d128d24ba4ffcf8896c9602d69058e286d1398dd531edd73ebf
3
+ metadata.gz: 278c99763d5ca8b32972c482295e69eeb169361d9672676698f8e86b9fd7b280
4
+ data.tar.gz: 9685147c5aceff5a56228a6a1cb62bd68d3c70f8a86d8abf53c1a5d93c514ada
5
5
  SHA512:
6
- metadata.gz: c037f11562f8a20db823fefec5d9ffbc1aef49aa3a445fe78555acbc2ded7a84fea2863cfb1e88cb04ef8d11e93ad51b9700e6f81dedec1987e63e7677134125
7
- data.tar.gz: dc1dce5cc48e298bee1708f9bfef4f20d86423860ac7761ea440b179ce3e4a44f70ef65aabee9299a95bae4e0a99640602e007035fcbca53ed62900951a17f37
6
+ metadata.gz: ff78d8748767c661088e575b1085090e0d6f4c863422dd7facb00c26dc1bbc1b38afc81b3f39a0817a27ee1108db6efde79cd339176d18db18612dc08af3972a
7
+ data.tar.gz: 639a28fa06bce26cee23f746aed5192d7b909b81680b4186a4180d73f570742424e71bcaefa64e52db3405534604c339df2cf38d3c87fdd60b5eeb848811216c
@@ -80,10 +80,16 @@ module ForemanAnsibleCore
80
80
  def handle_broadcast_data(event)
81
81
  log_event("broadcast", event)
82
82
  if event['event'] == 'playbook_on_stats'
83
+ failures = event.dig('event_data', 'failures') || {}
83
84
  header, *rows = event['stdout'].strip.lines.map(&:chomp)
84
85
  @outputs.keys.select { |key| key.is_a? String }.each do |host|
85
86
  line = rows.find { |row| row =~ /#{host}/ }
86
87
  publish_data_for(host, [header, line].join("\n"), 'stdout')
88
+
89
+ # If the task has been rescued, it won't consider a failure
90
+ if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0
91
+ publish_exit_status_for(host, 0)
92
+ end
87
93
  end
88
94
  else
89
95
  broadcast_data(event['stdout'] + "\n", 'stdout')
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanAnsibleCore
4
- VERSION = '4.1.0'
4
+ VERSION = '4.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_ansible_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Lobato Garcia
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-17 00:00:00.000000000 Z
11
+ date: 2021-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman_remote_execution_core
@@ -77,7 +77,7 @@ homepage: https://github.com/theforeman/foreman_ansible
77
77
  licenses:
78
78
  - GPL-3.0
79
79
  metadata: {}
80
- post_install_message:
80
+ post_install_message:
81
81
  rdoc_options: []
82
82
  require_paths:
83
83
  - lib
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubygems_version: 3.1.2
96
- signing_key:
96
+ signing_key:
97
97
  specification_version: 4
98
98
  summary: 'Ansible integration with Foreman (theforeman.org): core bits'
99
99
  test_files: []