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 +4 -4
- data/lib/bosh/stemcell/aws/light_stemcell.rb +4 -1
- data/lib/bosh/stemcell/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb202d21fc8ac0fa390d99e6b8a3d42f5c648df
|
4
|
+
data.tar.gz: 8a250aae327299539874b48d5a014e6408840575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ==
|
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
|
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.
|
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.
|
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.
|
26
|
+
version: 1.2745.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fakefs
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|