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: 13f80e6dffc1166fb7f5e423ea6543b6d89a5f8f45930c29073bf28e232bde0b
4
- data.tar.gz: 0f489c08c07a1eb217feec2d1b9325f3e5c9ce248becbaf68562471aac889cd0
3
+ metadata.gz: e893a2f960dd325ecee23b756b471f36814aae3f9f902421b18635bb69b6323a
4
+ data.tar.gz: d916b70de7e3419e6d546942b112adfb8733ab7b62fe168651404568e5489d35
5
5
  SHA512:
6
- metadata.gz: 88032e02e3375cb7d19992efaad18932e7eef3948e8822dc8ad573a790ce4077273012f861b49a8351cda44f4b272b84ef0bc8e8a7124a2d2a71c759026a1d87
7
- data.tar.gz: 8d0aec0264bdae9ba1530940088daeef369546a2ad9102d7d4eb1b7527f2cd1402d37915d4e9f659d845706938cd0dc7fc8299d1559c21b17cd404cdf91a22df
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: events.last[:sequence_id] + 1,
38
+ sequence_id: last[:sequence_id] + 1,
38
39
  template_invocation_id: template_invocation.id,
39
40
  event: data['exit_status'],
40
- timestamp: events.last[: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
 
@@ -1,3 +1,3 @@
1
1
  module ForemanRemoteExecution
2
- VERSION = '8.1.1'.freeze
2
+ VERSION = '8.1.2'.freeze
3
3
  end
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.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-01 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface