kitchen-ec2 1.3.1 → 1.3.2
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/kitchen/driver/ec2.rb +10 -10
- data/lib/kitchen/driver/ec2_version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1b0647af10aedb9a104e2a4659c8178a45e9bc2
|
|
4
|
+
data.tar.gz: 5f24e47af52b639dce9217c19f599b6adbd4cc32
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b41b1990852aec08150b2ecee3d8241ce3859880a486acfc13c8469a705a7ce6e02e68e44b1da91daac224caa75d907762a9ba0d61cd660ef9b4a52a384f2d91
|
|
7
|
+
data.tar.gz: ed47c0bfa871227064f8dabf3d59a6038546cc678de5f7856392f61df62b5c4765bb85561f7c126b20e0b1e68ed855a9a598f611334c1fe84e32cd73b3370d66
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [v1.3.2](https://github.com/test-kitchen/kitchen-ec2/tree/v1.3.2) (2017-02-24)
|
|
4
|
+
[Full Changelog](https://github.com/test-kitchen/kitchen-ec2/compare/v1.3.1...v1.3.2)
|
|
5
|
+
|
|
6
|
+
**Improvements:**
|
|
7
|
+
|
|
8
|
+
- Don't try to set tags if there aren't any. [\#298](https://github.com/test-kitchen/kitchen-ec2/pull/298) ([coderanger](https://github.com/coderanger))
|
|
9
|
+
|
|
3
10
|
## [v1.3.1](https://github.com/test-kitchen/kitchen-ec2/tree/v1.3.1) (2017-02-16)
|
|
4
11
|
[Full Changelog](https://github.com/test-kitchen/kitchen-ec2/compare/v1.3.0...v1.3.1)
|
|
5
12
|
|
data/lib/kitchen/driver/ec2.rb
CHANGED
|
@@ -383,22 +383,22 @@ module Kitchen
|
|
|
383
383
|
end
|
|
384
384
|
|
|
385
385
|
def tag_server(server)
|
|
386
|
-
if config[:tags]
|
|
387
|
-
tags = []
|
|
388
|
-
|
|
389
|
-
tags << { :key => k, :value => v }
|
|
386
|
+
if config[:tags] && !config[:tags].empty?
|
|
387
|
+
tags = config[:tags].map do |k, v|
|
|
388
|
+
{ :key => k, :value => v }
|
|
390
389
|
end
|
|
391
390
|
server.create_tags(:tags => tags)
|
|
392
391
|
end
|
|
393
392
|
end
|
|
394
393
|
|
|
395
394
|
def tag_volumes(server)
|
|
396
|
-
tags
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
395
|
+
if config[:tags] && !config[:tags].empty?
|
|
396
|
+
tags = config[:tags].map do |k, v|
|
|
397
|
+
{ :key => k, :value => v }
|
|
398
|
+
end
|
|
399
|
+
server.volumes.each do |volume|
|
|
400
|
+
volume.create_tags(:tags => tags)
|
|
401
|
+
end
|
|
402
402
|
end
|
|
403
403
|
end
|
|
404
404
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kitchen-ec2
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fletcher Nichol
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-02-
|
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: test-kitchen
|