foreman_remote_execution 10.0.1 → 10.0.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: 7c2d90dbbe2b1e7ad89b653003d5868a8828bdff319048339aac3e147c0fba3d
4
- data.tar.gz: 7b42b1e1e08f5889b6898f5f0478c3ba60627d63e1f39745ac900a5ae493ab20
3
+ metadata.gz: c6cbb748f9c9d67aba38a2fa62ad4e82306d665bd9ad0021c2125926207fd95f
4
+ data.tar.gz: 435f4a1aee85997d3ef430abf68a24da459bd55a09832a130e51c405638dbfd0
5
5
  SHA512:
6
- metadata.gz: 1a85f82d504442ec482555f13a488cc4089560d6c801c1987c7f05843fa2fe762259abacec050cc7073b691574d98423428b0aea349b569cb84476f36709c817
7
- data.tar.gz: 23c7448eb11d3b56a069d82001483f821b8f717c455821d956700c31f44c60fe526b7a1f83ac404846a16e7fd18cd22112c90f819fa84c62fd0b9e42837bb4cf
6
+ metadata.gz: 2b3b8b5d63dfc60911069228a9f0ff136ccfe536331bb53bf348b902ee4e0cbb1fb2e26ca3d209a409a5d78a03530d5e490460a6d024baf7a584ae755bbe88d3
7
+ data.tar.gz: e54b93592be98be9c6577f662d6a6e3298c36c9e7576b9325f4b1f981f94ff560865e37aaec4a87a8fe06ed933e433e66420326b9c7b5f6e72e13503b8ff4671
@@ -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.3'.freeze
3
3
  end
data/package.json CHANGED
@@ -23,7 +23,6 @@
23
23
  "@babel/core": "^7.7.0",
24
24
  "@theforeman/builder": "^12.0.1",
25
25
  "@theforeman/eslint-plugin-foreman": "^12.0.1",
26
- "@theforeman/stories": "^12.0.1",
27
26
  "@theforeman/test": "^12.0.1",
28
27
  "@theforeman/vendor-dev": "^12.0.1",
29
28
  "babel-eslint": "^10.0.0",
@@ -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.3
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-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface