foreman_bootdisk 2.0.7 → 2.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 968b38fc3cb43d0f3e0f10a7f16cfba11b377934
4
- data.tar.gz: 30f4b625448bd5dfd994c5d98bd364d5210cbc79
3
+ metadata.gz: 7dc3b370c05e00255c22c4ea339b2a713738b506
4
+ data.tar.gz: 55c4f0a822d7c2b37109d1335a7b05e0e2598d70
5
5
  SHA512:
6
- metadata.gz: ca59150ae4a72cf99707eb4dcbb874156a153a8bb97f734a51d55e0ee51d218d50502a698f3dd433719aa2cf2ffdce1f5dc034d045a9c28db2143a0cf1fd3326
7
- data.tar.gz: a8166ebf290dac36437b9f366214d8f2946f0ed6d095795c0ed63c8dfb6bf26ead386000a158c72538fd6248bffdd94149a1361b98671a54ef397f7ec6dde8de
6
+ metadata.gz: d9cc91f4d6a7ae13a3296e322149163325ec94d42e07cabf7a2201efcbc7cae83b3799370e395740039acde09052a75bf899d3b1a94b02da300df4a3ed0f90fd
7
+ data.tar.gz: e4dda5788b2eb5f80e36d63bf3e4945733bf2173cb509fa32c674491cf99d57819a46c43625c23858550a536092d2c877059164a588e42610b6f16ac4c846fee
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v2.0.8
4
+ * fix DB migration when setting when using empty database (#5970)
5
+ * updates to README
6
+
3
7
  ## v2.0.7
4
8
  * change 'kind' of templates to Bootdisk to avoid confusion
5
9
 
data/README.md CHANGED
@@ -183,13 +183,9 @@ Ensure the device name is correct to avoid writing over the wrong disk.
183
183
 
184
184
  Report issues on the Redmine project: [foreman_bootdisk](http://projects.theforeman.org/projects/bootdisk/issues/new)
185
185
 
186
- ## Known issues
187
-
188
- * No SELinux policy support
189
-
190
186
  # Copyright
191
187
 
192
- Copyright (c) 2013 Red Hat Inc.
188
+ Copyright (c) 2013-2014 Red Hat Inc.
193
189
 
194
190
  This program is free software: you can redistribute it and/or modify
195
191
  it under the terms of the GNU General Public License as published by
@@ -1,8 +1,12 @@
1
1
  class ChangeTemplatekindToBootdisk < ActiveRecord::Migration
2
2
  def self.up
3
3
  kind = TemplateKind.find_or_create_by_name('Bootdisk')
4
- ConfigTemplate.unscoped.where('name LIKE ? OR name = ? OR name = ?', '%Boot disk%',
5
- Setting[:bootdisk_host_template], Setting[:bootdisk_generic_host_template]).each do |tmpl|
4
+
5
+ tmpl_h = Setting.find_by_name('bootdisk_host_template').try(:value)
6
+ tmpl_g = Setting.find_by_name('bootdisk_generic_host_template').try(:value)
7
+
8
+ (ConfigTemplate.unscoped.where('name LIKE ?', '%Boot disk%') |
9
+ ConfigTemplate.unscoped.where(:name => [tmpl_h, tmpl_g].compact)).each do |tmpl|
6
10
  tmpl.update_attribute(:template_kind_id, kind.id)
7
11
  end
8
12
  end
@@ -1,3 +1,3 @@
1
1
  module Bootdisk
2
- VERSION = '2.0.7'
2
+ VERSION = '2.0.8'
3
3
  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: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-22 00:00:00.000000000 Z
11
+ date: 2014-05-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Plugin for Foreman that creates iPXE-based boot disks to provision hosts
14
14
  without the need for PXE infrastructure.