smart_proxy_ansible 3.5.6 → 3.5.7
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: 60ea073b5f26ee9b4a1f39f09658d89f54c126e16914f1139fb105a197714bbd
|
4
|
+
data.tar.gz: e1e95bed81cc2cf6cf180852f010905f38790cee89a511207e45cfd449123688
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4829fdcc76602817f4e8fd1ce103cfbdd213bd492fa90fc0f280940a08cd094e1713d4e2dcf05b5500ec707166fb41428eb1f53616193110af6a5de120039c4c
|
7
|
+
data.tar.gz: b943569f68bb3153167fd6ebc2746861e95525da5f86f9cbbdc1a577f98051142839e95cbed1cd87a76b62d0b7cff75ac4bc02bb3d3d96b45b0dc51f04c14d74
|
@@ -144,10 +144,12 @@ module Proxy::Ansible
|
|
144
144
|
failures = event.dig('event_data', 'failures') || {}
|
145
145
|
unreachable = event.dig('event_data', 'dark') || {}
|
146
146
|
rescued = event.dig('event_data', 'rescued') || {}
|
147
|
-
header, *rows = event['stdout'].strip.lines.map(&:
|
147
|
+
header, *rows = event['stdout'].strip.lines.map(&:rstrip)
|
148
|
+
# #lines strips the leading newline that precedes the header
|
149
|
+
broadcast_data("\n" + header + "\n", 'stdout')
|
148
150
|
@outputs.keys.select { |key| key.is_a? String }.each do |host|
|
149
151
|
line = rows.find { |row| row =~ /#{host}/ }
|
150
|
-
publish_data_for(host,
|
152
|
+
publish_data_for(host, line + "\n", 'stdout')
|
151
153
|
|
152
154
|
# If the task has been rescued, it won't consider a failure
|
153
155
|
if @exit_statuses[host].to_i != 0 && failures[host].to_i <= 0 && unreachable[host].to_i <= 0 && rescued[host].to_i > 0
|
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.
|
4
|
+
version: 3.5.7
|
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: 2024-
|
12
|
+
date: 2024-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|