bosh-stemcell 1.2744.0 → 1.2745.0

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: 13b872e217caeb7e7f321987c4f303456d8a566b
4
- data.tar.gz: 23ff3c7f120ca84d0c324f001c568fcc9a178e2d
3
+ metadata.gz: 4bb202d21fc8ac0fa390d99e6b8a3d42f5c648df
4
+ data.tar.gz: 8a250aae327299539874b48d5a014e6408840575
5
5
  SHA512:
6
- metadata.gz: 789c2feb4dd5900dcdad829784261bde0c4c6b25aef05f48311f602efbaa50c8bc12b9ec6ecf7f178410bb1a8320b89c538b149e581a76788552b03c49fa0fcb
7
- data.tar.gz: a0a2e2cece26c165be7bdc095f59472cbd38d97f3885840f9bdb5a2bcacb9399804b8a2f62386bc37f87cc030bc7e26792a9fdc896e915bcf621f5705b42710c
6
+ metadata.gz: 5978f4566555d9015ccfa45419bf482b8ffe6f5866fbd429023890039782a6820bf22ebf48c4ebd0da35a3bd2420bc76a2ffe2b930da651eb24baad6747a5b50
7
+ data.tar.gz: 66d7b722b7d9d7c66a687411f9dced78a48f9434adaac5ea40075b1e087b47a6c8dabe9d153360a4c6d3343ba6e02ebbdcdc6d33e4f2f172dca82524cfbadcec
@@ -5,6 +5,8 @@ require 'bosh/stemcell/aws/region'
5
5
  require 'bosh/stemcell/aws/ami'
6
6
 
7
7
  module Bosh::Stemcell::Aws
8
+ HVM_VIRTUALIZATION = 'hvm'
9
+
8
10
  class LightStemcell
9
11
  def initialize(stemcell, virtualization_type)
10
12
  @stemcell = stemcell
@@ -27,7 +29,7 @@ module Bosh::Stemcell::Aws
27
29
 
28
30
  def path
29
31
  stemcell_name = File.basename(stemcell.path)
30
- stemcell_name = stemcell_name.gsub("xen", "xen-hvm") if virtualization_type == "hvm"
32
+ stemcell_name = stemcell_name.gsub("xen", "xen-hvm") if virtualization_type == HVM_VIRTUALIZATION
31
33
  File.join(File.dirname(stemcell.path), "light-#{stemcell_name}")
32
34
  end
33
35
 
@@ -40,6 +42,7 @@ module Bosh::Stemcell::Aws
40
42
  ami = Ami.new(stemcell, region, virtualization_type)
41
43
  ami_id = ami.publish
42
44
  manifest = Bosh::Common::DeepCopy.copy(stemcell.manifest)
45
+ manifest['name'] = manifest['name'].gsub("xen", "xen-hvm") if virtualization_type == HVM_VIRTUALIZATION
43
46
  manifest['cloud_properties']['ami'] = { region.name => ami_id }
44
47
  manifest
45
48
  end
@@ -1,5 +1,5 @@
1
1
  module Bosh
2
2
  module Stemcell
3
- VERSION = '1.2744.0'
3
+ VERSION = '1.2745.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bosh-stemcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2744.0
4
+ version: 1.2745.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pivotal
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.2744.0
19
+ version: 1.2745.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.2744.0
26
+ version: 1.2745.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fakefs
29
29
  requirement: !ruby/object:Gem::Requirement