foreman_remote_execution 10.0.0 → 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: d890c4567fb404f653c2a8643eda01c63011e62b8734bad41a8ae09c1b2d0997
4
- data.tar.gz: 47254a2107030acb72d2b48e7a97842a05f55c7e0bf4beebb2a9627643dad9a5
3
+ metadata.gz: ada1b5df2ddfd23e01fa2264827b867625a7a7b113de21afe9471105ee8f7246
4
+ data.tar.gz: 237094d2794dbd7ae3d66e684542aa8cf9392975c0cf5b6bc680571c5b32db01
5
5
  SHA512:
6
- metadata.gz: 6018325970d90879915da7fdea167f215674a067388ed9d14e032142695e46c574a956c93212c26ceee0aca9dce09417832013712aee4b930b33de9bd4934b2e
7
- data.tar.gz: 21c813070a933f713daeaf2fe0366079c62b8dbe79247d1366ad2ab3757d4f31ecac528608617adac4a489ed9bf07e2ff53f8d91c061f7edc0ce2e1a4c079259
6
+ metadata.gz: 78be6438480c970b6e12ecd3431eb64d777807965642a9c7f4b5c8fb0546a970797dd0dae49874621b777f3e27153431a011bf337397200f4417bbfa57f802c9
7
+ data.tar.gz: '073930608ff75b88ca85b445f87aba1ea02203b37699dce173c17477882364fdfe6c4f0409e915ff3ea98bc0626ba0959226d5ecb33995358115936df5448f27'
data/.packit.yaml ADDED
@@ -0,0 +1,40 @@
1
+ # See the documentation for more information:
2
+ # https://packit.dev/docs/configuration/
3
+
4
+ specfile_path: rubygem-foreman_remote_execution.spec
5
+
6
+ # add or remove files that should be synced
7
+ files_to_sync:
8
+ - rubygem-foreman_remote_execution.spec
9
+ - .packit.yaml
10
+
11
+ # name in upstream package repository or registry (e.g. in PyPI)
12
+ upstream_package_name: foreman_remote_execution
13
+ # downstream (Fedora) RPM package name
14
+ downstream_package_name: rubygem-foreman_remote_execution
15
+
16
+ upstream_tag_template: v{version}
17
+
18
+ actions:
19
+ post-upstream-clone:
20
+ - "wget https://raw.githubusercontent.com/theforeman/foreman-packaging/rpm/develop/packages/plugins/rubygem-foreman_remote_execution/rubygem-foreman_remote_execution.spec -O rubygem-foreman_remote_execution.spec"
21
+ get-current-version:
22
+ - ruby -rrubygems -e 'puts Gem::Specification::load(Dir.glob("*.gemspec").first).version'
23
+ create-archive:
24
+ - gem build foreman_remote_execution.gemspec
25
+ - bash -c "ls -1t ./foreman_remote_execution-*.gem | head -n 1"
26
+
27
+ jobs:
28
+ - job: copr_build
29
+ trigger: pull_request
30
+ targets:
31
+ centos-stream-8:
32
+ additional_modules: "foreman:el8,nodejs:12"
33
+ additional_repos:
34
+ - http://koji.katello.org/releases/yum/foreman-nightly/el8/x86_64/
35
+ - http://yum.theforeman.org/plugins/nightly/el8/x86_64/
36
+ module_hotfixes: true
37
+
38
+ srpm_build_deps:
39
+ - wget
40
+ - rubygems
@@ -33,14 +33,14 @@ function show_preview_hosts_modal() {
33
33
  var form = $('form#job_invocation_form');
34
34
  var data = form
35
35
  .serializeArray()
36
- .filter(item =>
37
- [
36
+ .filter(function(item) {
37
+ return [
38
38
  'targeting[search_query]',
39
39
  'targeting[bookmark_id]',
40
40
  'targeting[targeting_type]',
41
41
  'targeting[randomized_ordering]',
42
42
  ].includes(item.name)
43
- );
43
+ });
44
44
  request = $.ajax({
45
45
  data: data,
46
46
  type: 'GET',
@@ -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.0'.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.0
4
+ version: 10.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Remote Execution team
8
- autorequire:
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
@@ -103,6 +103,7 @@ files:
103
103
  - ".github/workflows/release.yml"
104
104
  - ".github/workflows/ruby_ci.yml"
105
105
  - ".gitignore"
106
+ - ".packit.yaml"
106
107
  - ".prettierrc"
107
108
  - ".rubocop.yml"
108
109
  - ".rubocop_todo.yml"
@@ -560,7 +561,7 @@ homepage: https://github.com/theforeman/foreman_remote_execution
560
561
  licenses:
561
562
  - GPL-3.0
562
563
  metadata: {}
563
- post_install_message:
564
+ post_install_message:
564
565
  rdoc_options: []
565
566
  require_paths:
566
567
  - lib
@@ -575,8 +576,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
575
576
  - !ruby/object:Gem::Version
576
577
  version: '0'
577
578
  requirements: []
578
- rubygems_version: 3.1.6
579
- signing_key:
579
+ rubygems_version: 3.4.13
580
+ signing_key:
580
581
  specification_version: 4
581
582
  summary: A plugin bringing remote execution to the Foreman, completing the config
582
583
  management functionality with remote management functionality.