foreman_remote_execution 2.0.8 → 2.0.9

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: 708365a5d46e58a2f36973f15a985b26dfea90deb4b9de04ad0accfb6e1e1e78
4
- data.tar.gz: 850ef8a43db1392e926202875a780d3809b40694224c14f5f93989ec77689657
3
+ metadata.gz: 7fb50055a6efab356bce6d160b1765d79be7e39337ca3ebe124e24702dfd0990
4
+ data.tar.gz: 03e121a6d607ab4e9a3332785d52ba6bc3c100f9b112bd0945d9ab34c8bc5d7a
5
5
  SHA512:
6
- metadata.gz: 9c97366c26a7ae354f3ecf0b6b3dd6b9c65f0cc95d7fe933d37e7c865e228d5c413faf6fed2ecbe2c231a2a71fd7f93d7ed8777e9e37220dbc87f5789d2b8e44
7
- data.tar.gz: 7573adeacc91b38f11377f1e537d52d35ec2f0a8a0a8a71d9438f6d5e47978282979486ca09511292a271c043ada0aa7f8e89952320ebc5e5959c86a2156c521
6
+ metadata.gz: 74978d45b7a78c8b9244d2912e05cfc202012135a56775bad925b815574df9b0fcbb97ec0d707860451a9caecc14f29b54944b406ef931bcd5337326b48ca2e2
7
+ data.tar.gz: 73184dacb1a9702b0ba2d85ee8f4178e50273506ab82ed1e27ac4b4946362571e5379ef3525084cd2fd58b398e04ffd963b09eea13ee1f626b00a80dcb51f464
@@ -206,7 +206,9 @@ class JobInvocation < ApplicationRecord
206
206
  template_invocation = pattern_template_invocations.first
207
207
  hash_base = Hash.new { |hash, key| hash[key] = "%{#{key}}" }
208
208
  input_hash = template_invocation.input_values.reduce(hash_base) do |h, v|
209
- h.update(v.template_input.name => v.value)
209
+ value = v.value
210
+ value = '*' * 3 if v.template_input.respond_to?(:hidden_value) && v.template_input.hidden_value?
211
+ h.update(v.template_input.name => value)
210
212
  end
211
213
  input_hash.update(:job_category => job_category)
212
214
  input_hash.update(:template_name => template_invocation.template.name)
@@ -8,7 +8,7 @@
8
8
  <p>
9
9
  <ul>
10
10
  <% template_invocation.input_values.joins(:template_input).each do |input_value| %>
11
- <li><b><%= input_value.template_input.name %></b>: <%= trunc_with_tooltip(input_value.value, 255) %></li>
11
+ <li><b><%= input_value.template_input.name %></b>: <%= input_value.template_input.hidden_value ? '*' * 5 : trunc_with_tooltip(input_value.value, 255) %></li>
12
12
  <% end %>
13
13
  </ul>
14
14
  </p>
@@ -12,7 +12,7 @@
12
12
  <% template_invocation.input_values.joins(:template_input).each do |input_value| %>
13
13
  <tr>
14
14
  <td><b><%= input_value.template_input.name %></b></td>
15
- <td><%= input_value.value %></td>
15
+ <td><%= input_value.template_input.hidden_value? ? '*' * 5 : input_value.value %></td>
16
16
  </tr>
17
17
  <% end %>
18
18
  </tbody>
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '2.0.8'.freeze
2
+ VERSION = '2.0.9'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_remote_execution
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8
4
+ version: 2.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-19 00:00:00.000000000 Z
11
+ date: 2020-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface