foreman_remote_execution 13.2.0 → 13.2.1

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: ab4f560e39c672bfce2319a0487db47a3f772a11142591262727b5a16a7a0573
4
- data.tar.gz: 6dab6dc9a69cc43df9a13cc0173651e37639fd29f38b1153e6541567da6ff01c
3
+ metadata.gz: 473900c99e054678a879651060b7596221f32c7f2713d28efb472957b7ac73ed
4
+ data.tar.gz: 14e55ba559f96def212e56aad5087b3e171fceb0cae2209b2ba1ef0566bda620
5
5
  SHA512:
6
- metadata.gz: 0226bedd8d571be5c687abf520499cc26b94981980f6924b51e34a8de5ff300106b8d750474961da5f4270eaaa773cde04fcfe1d8b5050772fb6efada15b5f63
7
- data.tar.gz: 37147e8f31b7a3050f883d24783e2aa10ed0e782c97badeabb511164990c6fe95b65caaf0d2290216c4d9f5616fcc2bcd2538f90dfcb21bad0526c8c24cd65f2
6
+ metadata.gz: 715de4ec99b4f17450ec02cca4db12e7778001098f49c1a733fae18c84d72855dd59e8dc86c1a6edddd72856a26c345c1397b2e2c1a66f14b0e605497f59e747
7
+ data.tar.gz: 7dd731683f6f68d5c9f32c14b9411cbde8a65e0de38de249f691cd70447b2ff936bac8f7413b4edad8bb776ae0612ccbcb487650a20a16c35e37fc2ded3b4af2
@@ -118,19 +118,27 @@ handle_zypp_res_codes () {
118
118
  end
119
119
  end
120
120
  -%>
121
- OUTFILE=$(mktemp)
122
- trap "rm -f $OUTFILE" EXIT
123
- set -o pipefail
121
+ run_cmd()
122
+ {
123
+ LANG=C 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") %> 2>&1
124
+ }
124
125
  export DEBIAN_FRONTEND=noninteractive
125
126
  apt-get -y update
126
- LANG=C 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") %> 2>&1 | tee $OUTFILE
127
- RETVAL=$?
128
- if grep -q "Unable to locate" $OUTFILE && [ "$action" = "remove" ]; then
129
- true
127
+ if [ "<%= action %>" = "remove" ]; then
128
+ OUTFILE=$(mktemp)
129
+ trap "rm -f $OUTFILE" EXIT
130
+ run_cmd > $OUTFILE
131
+ RETVAL=$?
132
+ cat $OUTFILE
133
+ if grep -q "Unable to locate" $OUTFILE; then
134
+ RETVAL=0
135
+ fi
130
136
  else
131
- setReturnValue() { RETVAL=$1; return $RETVAL; }
132
- setReturnValue $RETVAL
137
+ run_cmd
138
+ RETVAL=$?
133
139
  fi
140
+ setReturnValue() { RETVAL=$1; return $RETVAL; }
141
+ setReturnValue $RETVAL
134
142
  <% elsif package_manager == 'zypper' -%>
135
143
  <%-
136
144
  if action == "group install"
@@ -141,7 +149,7 @@ handle_zypp_res_codes () {
141
149
  -%>
142
150
  zypper refresh
143
151
  zypper -n <%= action %> <%= input("options") %> <%= input("package") %>
144
- handle_zypp_res_codes $? $action
152
+ handle_zypp_res_codes $? "<%= action %>"
145
153
  <% end -%>
146
154
  RETVAL=$?
147
155
  [ $RETVAL -eq 0 ] || exit_with_message "Package action failed" $RETVAL
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '13.2.0'.freeze
2
+ VERSION = '13.2.1'.freeze
3
3
  end
@@ -16,7 +16,17 @@
16
16
  ); // So the select box can be shown above the wizard footer and navigation toggle
17
17
  }
18
18
  .pf-c-wizard__main-body {
19
- max-width: 500px;
19
+ @media (max-width: 600px) {
20
+ max-width: 100%;
21
+ }
22
+
23
+ @media (min-width: 601px) and (max-width: 1300px) {
24
+ max-width: 65vw;
25
+ }
26
+ @media (min-width: 1301px) {
27
+ max-width: 50vw;
28
+ }
29
+
20
30
  .advanced-fields-title {
21
31
  margin-bottom: 10px;
22
32
  }
@@ -40,6 +50,9 @@
40
50
  flex-wrap: nowrap;
41
51
  }
42
52
  }
53
+ .foreman-search-field {
54
+ width: 100%;
55
+ }
43
56
  }
44
57
  input[type='radio'],
45
58
  input[type='checkbox'] {
@@ -110,10 +123,6 @@
110
123
  min-height: 40px;
111
124
  min-width: 100px;
112
125
  }
113
- #host-selection {
114
- width: 500px;
115
- }
116
-
117
126
  .pf-c-modal-box {
118
127
  width: auto;
119
128
  }
@@ -49,7 +49,10 @@ const HostsAndInputs = ({
49
49
  hostsSearchQuery,
50
50
  setHostsSearchQuery,
51
51
  }) => {
52
- const [hostMethod, setHostMethod] = useState(hostMethods.hosts);
52
+ const defaultHostMethod = hostsSearchQuery.length
53
+ ? hostMethods.searchQuery
54
+ : hostMethods.hosts;
55
+ const [hostMethod, setHostMethod] = useState(defaultHostMethod);
53
56
  const isLoading = useSelector(selectIsLoadingHosts);
54
57
  const templateInputs = useSelector(selectTemplateInputs);
55
58
  const [hostPreviewOpen, setHostPreviewOpen] = useState(false);
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: 13.2.0
4
+ version: 13.2.1
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: 2024-05-30 00:00:00.000000000 Z
11
+ date: 2024-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface