foreman_remote_execution 10.0.1 → 10.0.2

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: 7c2d90dbbe2b1e7ad89b653003d5868a8828bdff319048339aac3e147c0fba3d
4
- data.tar.gz: 7b42b1e1e08f5889b6898f5f0478c3ba60627d63e1f39745ac900a5ae493ab20
3
+ metadata.gz: ada1b5df2ddfd23e01fa2264827b867625a7a7b113de21afe9471105ee8f7246
4
+ data.tar.gz: 237094d2794dbd7ae3d66e684542aa8cf9392975c0cf5b6bc680571c5b32db01
5
5
  SHA512:
6
- metadata.gz: 1a85f82d504442ec482555f13a488cc4089560d6c801c1987c7f05843fa2fe762259abacec050cc7073b691574d98423428b0aea349b569cb84476f36709c817
7
- data.tar.gz: 23c7448eb11d3b56a069d82001483f821b8f717c455821d956700c31f44c60fe526b7a1f83ac404846a16e7fd18cd22112c90f819fa84c62fd0b9e42837bb4cf
6
+ metadata.gz: 78be6438480c970b6e12ecd3431eb64d777807965642a9c7f4b5c8fb0546a970797dd0dae49874621b777f3e27153431a011bf337397200f4417bbfa57f802c9
7
+ data.tar.gz: '073930608ff75b88ca85b445f87aba1ea02203b37699dce173c17477882364fdfe6c4f0409e915ff3ea98bc0626ba0959226d5ecb33995358115936df5448f27'
@@ -9,7 +9,7 @@
9
9
  <%= field(f, :description) { @remote_execution_feature.description } %>
10
10
  </div>
11
11
  <div class="row">
12
- <%= field(f, :provided_inputs) { @remote_execution_feature.provided_inputs } %>
12
+ <%= field(f, :provided_inputs) { @remote_execution_feature.provided_inputs || '' } %>
13
13
  </div>
14
14
  <div class="row">
15
15
  <% job_templates = JobTemplate.authorized(:view_job_templates) %>
@@ -11,6 +11,12 @@ template_inputs:
11
11
  input_type: user
12
12
  required: false
13
13
  advanced: true
14
+ - name: refresh_subscription
15
+ description: Refresh subscription-manager state. Default is "false".
16
+ input_type: user
17
+ required: false
18
+ advanced: true
19
+ options: "false\r\ntrue"
14
20
  - name: action
15
21
  description: 'The package action: install, update, or remove'
16
22
  input_type: user
@@ -90,6 +96,10 @@ handle_zypp_res_codes () {
90
96
  [ $RETVAL -eq 0 ] || exit_with_message "Pre script failed" $RETVAL
91
97
  <% end -%>
92
98
 
99
+ <% if input("refresh_subscription") == "true" -%>
100
+ [ -x "$(command -v subscription-manager)" ] && subscription-manager refresh
101
+ <% end -%>
102
+
93
103
  # Action
94
104
  <% if package_manager == 'yum' -%>
95
105
  yum -y <%= input("options") %> <%= action %> <%= input("package") %>
@@ -105,7 +115,6 @@ handle_zypp_res_codes () {
105
115
  end
106
116
  end
107
117
  -%>
108
- [ -x "$(command -v subscription-manager)" ] && subscription-manager refresh
109
118
  export DEBIAN_FRONTEND=noninteractive
110
119
  apt-get -y update
111
120
  apt-get -o APT::Get::Upgrade-Allow-New="true" -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y <%= input("options") %> <%= action %> <%= input("package") %>
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '10.0.1'.freeze
2
+ VERSION = '10.0.2'.freeze
3
3
  end
@@ -48,8 +48,11 @@ export const useAutoFill = ({
48
48
  })
49
49
  );
50
50
  }
51
- if (search && !hostIds?.length) {
52
- setHostsSearchQuery(search);
51
+ if ((search || search === '') && !hostIds?.length) {
52
+ // replace an empty string search with a dummy search query to match all hosts
53
+ // but only if search query was entered (based on presence of :search parameter)
54
+ const hostSearch = search === '' ? "name != ''" : search;
55
+ setHostsSearchQuery(hostSearch);
53
56
  }
54
57
  if (templateID) {
55
58
  setJobTemplateID(+templateID);
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: 10.0.1
4
+ version: 10.0.2
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: 2023-05-22 00:00:00.000000000 Z
11
+ date: 2023-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface