kitchen-vmpool 0.3.1 → 0.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 +6 -0
- data/exe/vra_create_pool +3 -0
- data/lib/kitchen-vmpool/version.rb +1 -1
- data/lib/kitchen/driver/vmpool.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 65858fcfc101cec7b6e0f8a6ee346eec09dac93e
|
|
4
|
+
data.tar.gz: 433d4c11777002d5239e0b095c6863a66df324a9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5bdd70bea4907ec7f6c14c1696f018e9bd23636e7cb6062f186cf34dddef52a51cb1284826341c5011810aec778957e8511501d6f4e4e54ec939a8850d55b81
|
|
7
|
+
data.tar.gz: adc49044d3030ed33a1576c3c3ab950c552f5210b750793037e7d0add19f8ebee3ecfada9eca7bcbb09dcfc29c07854ac6303b25d5a03c89230cdc003d357571
|
data/CHANGELOG.md
CHANGED
data/exe/vra_create_pool
CHANGED
|
@@ -83,6 +83,9 @@ def create_pools
|
|
|
83
83
|
# return the alive instances and save to the pool
|
|
84
84
|
pools[key]['pool_instances'] = pools[key]['pool_instances'].find_all {|h| is_alive?(h) }
|
|
85
85
|
|
|
86
|
+
# delete any old instances from used pool
|
|
87
|
+
pools[key]['used_instances'] = pools[key]['used_instances'].find_all {|h| is_alive?(h) }
|
|
88
|
+
|
|
86
89
|
# create the pool, and save the request in the requests
|
|
87
90
|
# do not create if the number of systems and requests are more than the requested amount
|
|
88
91
|
current_total = value['pool_instances'].count + pools[key]['requests'].count
|
|
@@ -52,9 +52,9 @@ module Kitchen
|
|
|
52
52
|
return if state[:hostname].nil?
|
|
53
53
|
store.mark_unused(state[:hostname], config[:pool_name], config[:reuse_instances])
|
|
54
54
|
if config[:reuse_instances]
|
|
55
|
-
info("Marking pool member #{
|
|
55
|
+
info("Marking pool member #{state[:hostname]} as unused")
|
|
56
56
|
else
|
|
57
|
-
info("Marking pool member #{
|
|
57
|
+
info("Marking pool member #{state[:hostname]} as used")
|
|
58
58
|
end
|
|
59
59
|
state.delete(:hostname)
|
|
60
60
|
end
|