foreman_bootdisk 19.0.2 → 19.0.3

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: 288a501e1dc3e32cc0d29175e498c1f6f3c04869e51ab755b8d4c69c1aa68ef2
4
- data.tar.gz: 9180766afc55ffa712ac164688c02fe6edcf322f23c6b3f1e8dafae1e7295c4c
3
+ metadata.gz: 22450c623bbb4cde0debe357734390dc1adcf7c35a35541a045e19a510c7da28
4
+ data.tar.gz: 6a56ff9451ea1524088c06698cfd512db0dc00bca16e5a0fadb84ba156062a72
5
5
  SHA512:
6
- metadata.gz: 73ab12281dc578414885ab788023b80f499cb075d53c365597561d1f7c02b32cbd31234ed4cd4e73ae81a23309e2c723f603b5a7d139fed5a8dd53aca52aee0b
7
- data.tar.gz: 7e2eae93d56bc434ca4a7a845a05ff909f6b116e137b6525463acace00a9671fa4600043cbae86f92a10441031e975525dac3381cadbfb536539ce4898839a9a
6
+ metadata.gz: 8db9ffc3a8670c2c525a1c1906f31fb2a9d92958e7680f9f8a9fbd0e0a1027eb98138fe151e0bef2a286192e53329086ff146ab22638600e5986736560686978
7
+ data.tar.gz: c674a98098cfd8d67d44ccec841dea92d249d1589d4b8a59fa07fbf2068e5b0cc0096ea30abfa3afcc71988382a7f2e0db9fb92d389973935914b8a72fab1bac
@@ -7,6 +7,7 @@ class ChangeTemplatekindToBootdisk < ActiveRecord::Migration[4.2]
7
7
  else
8
8
  'templates'
9
9
  end
10
+ self.inheritance_column = :_type_disabled
10
11
  end
11
12
 
12
13
  def self.up
@@ -15,10 +16,8 @@ class ChangeTemplatekindToBootdisk < ActiveRecord::Migration[4.2]
15
16
  tmpl_h = Setting.find_by(name: 'bootdisk_host_template').try(:value)
16
17
  tmpl_g = Setting.find_by(name: 'bootdisk_generic_host_template').try(:value)
17
18
 
18
- (FakeConfigTemplate.unscoped.where('name LIKE ?', '%Boot disk%') |
19
- FakeConfigTemplate.unscoped.where(name: [tmpl_h, tmpl_g].compact)).each do |tmpl|
20
- tmpl.update_attribute(:template_kind_id, kind.id)
21
- end
19
+ FakeConfigTemplate.unscoped.where('name LIKE ?', '%Boot disk%').update_all(template_kind_id: kind.id)
20
+ FakeConfigTemplate.unscoped.where(name: [tmpl_h, tmpl_g].compact).update_all(template_kind_id: kind.id)
22
21
  end
23
22
 
24
23
  def self.down
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ForemanBootdisk
4
- VERSION = '19.0.2'
4
+ VERSION = '19.0.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_bootdisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 19.0.2
4
+ version: 19.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-01-14 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: theforeman-rubocop