foreman_remote_execution 8.1.1 → 8.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: e893a2f960dd325ecee23b756b471f36814aae3f9f902421b18635bb69b6323a
|
4
|
+
data.tar.gz: d916b70de7e3419e6d546942b112adfb8733ab7b62fe168651404568e5489d35
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27b59e2db3824b75f8038f214e76dc5abbf941ae91ed188c4d6dae97351d189bba6502b2e71e7f4b41b6f21b46a8772e56ee5fc0ee5095d5a281333b7c86cec8
|
7
|
+
data.tar.gz: 23231766b5d3f07590acc887d36da711b3859a3bbd581b5192a4bce3a3db45f263984a57993949768dab62cefcccc7d0dde75489f722ed3600732155407182cf
|
@@ -33,11 +33,12 @@ module Actions
|
|
33
33
|
}
|
34
34
|
end
|
35
35
|
if data['exit_status']
|
36
|
+
last = events.last || {:sequence_id => -1, :timestamp => Time.zone.now}
|
36
37
|
events << {
|
37
|
-
sequence_id:
|
38
|
+
sequence_id: last[:sequence_id] + 1,
|
38
39
|
template_invocation_id: template_invocation.id,
|
39
40
|
event: data['exit_status'],
|
40
|
-
timestamp:
|
41
|
+
timestamp: last[:timestamp],
|
41
42
|
event_type: 'exit',
|
42
43
|
}
|
43
44
|
end
|
@@ -6,10 +6,13 @@ module Actions
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def log_template_invocation_exception(exception)
|
9
|
+
last = template_invocation.template_invocation_events.order(:sequence_id).last
|
10
|
+
id = last ? last.sequence_id + 1 : 0
|
9
11
|
template_invocation.template_invocation_events.create!(
|
10
12
|
:event_type => 'debug',
|
11
13
|
:event => "#{exception.class}: #{exception.message}",
|
12
|
-
:timestamp => Time.zone.now
|
14
|
+
:timestamp => Time.zone.now,
|
15
|
+
:sequence_id => id
|
13
16
|
)
|
14
17
|
end
|
15
18
|
|
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: 8.1.
|
4
|
+
version: 8.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: 2022-12-
|
11
|
+
date: 2022-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: deface
|