foreman_remote_execution 14.1.1 → 14.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 237cac074270280b4bab25b144716d3ddb515fe4d9159e3e86badfb2530dc667
|
4
|
+
data.tar.gz: bcb74259222068245df6df8af2ff6a0d7e7cd58516d4654e2b3a3635f09176b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a68f13a3060ef118f1d44f262cb4c6d072acb1abe88cdd0ef6bbcd03dcca716e7468aaa0526c7697ce99729b0cdabe7bbfe1e3ac2b16f282b87d7316cf984ca
|
7
|
+
data.tar.gz: ce09bfa5f114f7cf0c43b4b880557b7394bff115e8d66750cea8bd5c861d8c89a06b0fa243a14ba57d899227bab655565a9b15c33fbcb4d21d6bcd7a02497b4e
|
data/app/models/job_template.rb
CHANGED
@@ -64,6 +64,7 @@ class JobTemplate < ::Template
|
|
64
64
|
# will overwrite (sync) an existing template if options[:update] is true.
|
65
65
|
def import_raw(contents, options = {})
|
66
66
|
metadata = Template.parse_metadata(contents)
|
67
|
+
return unless SeedHelper.test_template_requirements(metadata['name'], metadata['require'] || [])
|
67
68
|
import_parsed(metadata['name'], contents, metadata, options)
|
68
69
|
end
|
69
70
|
|
@@ -9,7 +9,7 @@ var target = $("div.terminal div.printable");
|
|
9
9
|
target.html(lines);
|
10
10
|
<% end %>
|
11
11
|
|
12
|
-
<%= render :
|
12
|
+
<%= render partial: 'refresh', formats: :js %>
|
13
13
|
|
14
14
|
if (scrolledToBottom) {
|
15
15
|
$("html, body").animate({ scrollTop: $(document).height() }, "slow");
|
@@ -6,6 +6,15 @@ class ExtendTemplateInvocationEvents < ActiveRecord::Migration[6.1]
|
|
6
6
|
|
7
7
|
TemplateInvocationEvent.update_all("external_id = CASE WHEN event_type = 'exit' THEN 'exit' ELSE sequence_id::varchar END")
|
8
8
|
|
9
|
+
# For each template invocation return the lowest id of its exit event, if there is more than 1 exit event
|
10
|
+
scope = TemplateInvocationEvent.select("MIN(id) as id")
|
11
|
+
.where(external_id: 'exit')
|
12
|
+
.group(:template_invocation_id)
|
13
|
+
.having("count(*) > 1")
|
14
|
+
|
15
|
+
# Make sure there is at most one exit event per template invocation
|
16
|
+
TemplateInvocationEvent.where(:id => scope.limit(BATCH_SIZE)).delete_all while scope.any?
|
17
|
+
|
9
18
|
remove_index :template_invocation_events, name: :unique_template_invocation_events_index
|
10
19
|
remove_column :template_invocation_events, :sequence_id
|
11
20
|
|
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: 14.1.
|
4
|
+
version: 14.1.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: 2024-11-
|
11
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|