foreman_bootdisk 8.0.1 → 8.0.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
  SHA1:
3
- metadata.gz: 4ecc018ff9fc843eed00c29113ffacd3b5f41748
4
- data.tar.gz: 1b66b121c941e1920c209fa8150dfaf7bb352473
3
+ metadata.gz: 4e4edcf1bef7cac12fd6dfc3126c56d38dd40fcc
4
+ data.tar.gz: d567eaaf000f3de41b406d377e48309f84d00de1
5
5
  SHA512:
6
- metadata.gz: 35e336d9aedce269030d034096488dbca617a07f3ef69e4525b70a1bfd86881e50d5c7d8a81f01b72295aee440feaab06c7c51e00446b15c0bd39fa5cf7ffedc
7
- data.tar.gz: ef28b6dab07c4a17838a41818bc8e2fde706ffb0c0e63022790760aa9349fcc7cf7ef35ae3af7adfa6b6df9f5354b198fbfabcea5a29af214d7b7ea02c757c4b
6
+ metadata.gz: 4261cb941f1a326bc0212fceb800a2791275e1cb48bf1c31a072be194b82272af998e43f459b9ba1e5a1d5c61fac1b7851d2f10b4cf11b95b86e96c3e8424fa3
7
+ data.tar.gz: 72f9f11d227df4e5e665e0e9f54b5b7a4fe409097d68c1654ff3b740fb445bfd5b1a9b44039ba82f422e69ab65ad850b5f9dc4052b38472370b680117db90c61
data/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v8.0.2
4
+ * fix truncation of filenames with suffixes for ISO9660
5
+ * replace deprecated pxe_render call for Foreman 1.14
6
+
3
7
  ## v8.0.1
4
8
  * translate setting names
5
9
  * use dropdown menus for template settings (#14948)
@@ -14,7 +14,7 @@ module ForemanBootdisk::HostExt
14
14
 
15
15
  def bootdisk_template_render
16
16
  @host = self
17
- pxe_render(bootdisk_template.template)
17
+ unattended_render(bootdisk_template.template)
18
18
  end
19
19
 
20
20
  def bootdisk_chain_url(mac = self.mac, action = 'iPXE')
@@ -20,8 +20,7 @@ class ForemanBootdisk::ISOGenerator
20
20
  files.map! do |bootfile_info|
21
21
  bootfile_info.map do |f|
22
22
  suffix = f[1].split('/').last
23
- iso_suffix = iso9660_filename(suffix)
24
- iso_f0 = iso9660_filename(f[0].to_s) + '_' + iso_suffix
23
+ iso_f0 = iso9660_filename(f[0].to_s + '_' + suffix)
25
24
  tmpl.gsub!(f[0].to_s + '-' + suffix, iso_f0)
26
25
  ForemanBootdisk.logger.debug("Boot file #{iso_f0}, source #{f[1]}")
27
26
  [iso_f0, f[1]]
@@ -134,7 +133,7 @@ class ForemanBootdisk::ISOGenerator
134
133
  # isolinux supports up to ISO 9660 level 2 filenames
135
134
  def self.iso9660_filename(name)
136
135
  dir = File.dirname(name)
137
- file = File.basename(name).upcase.tr_s('^A-Z0-9_', '_')[0..30]
138
- dir == '.' ? file : File.join(dir.upcase.tr_s('^A-Z0-9_', '_')[0..30], file)
136
+ file = File.basename(name).upcase.tr_s('^A-Z0-9_', '_').last(28)
137
+ dir == '.' ? file : File.join(dir.upcase.tr_s('^A-Z0-9_', '_').last(28), file)
139
138
  end
140
139
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanBootdisk
2
- VERSION = '8.0.1'
2
+ VERSION = '8.0.2'
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: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominic Cleal
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-07 00:00:00.000000000 Z
11
+ date: 2016-09-08 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.