foreman_ansible_core 4.1.2 → 4.1.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1ca3b309e4ee2869e3eeca882b6e296a68728ec7f6722ff294dcba365c912ffc
|
4
|
+
data.tar.gz: 6215aa8ddb560b6d140873c7c390af83cca70af62a0a8571cf51f1d6b6db0bae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d507685ceb4cc8278ae333d4edc12fabd45a998123dd3c69158b88b0c7bd987ec792bd76b59b75f43e77a2b2db066595c3582895f6d9cf1be69bd6b36ac9ae7
|
7
|
+
data.tar.gz: 8968f788db24c21d1222d9c0729f88371d7469910c3429335290d6fd72cfbad4a9084373a227b27a4d72188de6abce473d7e3121838efdf7afaeb35b5c947e8b
|
@@ -81,13 +81,16 @@ module ForemanAnsibleCore
|
|
81
81
|
log_event("broadcast", event)
|
82
82
|
if event['event'] == 'playbook_on_stats'
|
83
83
|
failures = event.dig('event_data', 'failures') || {}
|
84
|
+
unreachable = event.dig('event_data', 'dark') || {}
|
84
85
|
header, *rows = event['stdout'].strip.lines.map(&:chomp)
|
85
86
|
@outputs.keys.select { |key| key.is_a? String }.each do |host|
|
86
87
|
line = rows.find { |row| row =~ /#{host}/ }
|
87
88
|
publish_data_for(host, [header, line].join("\n"), 'stdout')
|
88
89
|
|
89
90
|
# If the task has been rescued, it won't consider a failure
|
90
|
-
|
91
|
+
if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0 && unreachable[host].to_i <= 0
|
92
|
+
publish_exit_status_for(host, 0)
|
93
|
+
end
|
91
94
|
end
|
92
95
|
else
|
93
96
|
broadcast_data(event['stdout'] + "\n", 'stdout')
|
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.
|
4
|
+
version: 4.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Lobato Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: foreman_remote_execution_core
|