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: cdb206292fd57f3df0b026850f14e36a171ab612441a07eabda038564ed9882e
4
- data.tar.gz: f81ec06c89616f468f8e0b2e91337604ac53083813afb78ac0428b81c2c3fab8
3
+ metadata.gz: 60ea073b5f26ee9b4a1f39f09658d89f54c126e16914f1139fb105a197714bbd
4
+ data.tar.gz: e1e95bed81cc2cf6cf180852f010905f38790cee89a511207e45cfd449123688
5
5
  SHA512:
6
- metadata.gz: c43173334f7e61412176729557b0d259c9f5a4c1be8e1e13d41c0a5fecc77ad2c4a3768b3d43dcd41db53ce46fbf5b5cf81328ebdaa3045fb083d4bff44ea835
7
- data.tar.gz: de9b416be34c2a2f6abf0b9ef1747911356fdb770cfa3ea90ee37dc409b78f9b168477c3656327ecbfa412ddfe335e1043b9510c4260b58d5e50370df5eb8f6a
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(&:chomp)
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, [header, line].join("\n"), 'stdout')
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
@@ -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.6'
5
+ VERSION = '3.5.7'
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.6
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-07-09 00:00:00.000000000 Z
12
+ date: 2024-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake