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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7869a48f15c969c13245f666431ba7e2abb74f0e
4
- data.tar.gz: a13cdd5ec5d9605770f0bd62fb0efffca68a0baf
3
+ metadata.gz: 65858fcfc101cec7b6e0f8a6ee346eec09dac93e
4
+ data.tar.gz: 433d4c11777002d5239e0b095c6863a66df324a9
5
5
  SHA512:
6
- metadata.gz: 7fde87b12f5a35231eb14d8c30db4b15f8c0ef724d46318c132d7f345346a414eb759458ec4b9995da8ed89db3f57c54761d956d39448e878969a1e7a7bf131e
7
- data.tar.gz: bab5e2011b01b74392943118990382b67e06cdda35484415eef43f35a9c41c14d138475263a0c1b834a057b288dc57563272ee49e1406847b785d661e9ba973d
6
+ metadata.gz: a5bdd70bea4907ec7f6c14c1696f018e9bd23636e7cb6062f186cf34dddef52a51cb1284826341c5011810aec778957e8511501d6f4e4e54ec939a8850d55b81
7
+ data.tar.gz: adc49044d3030ed33a1576c3c3ab950c552f5210b750793037e7d0add19f8ebee3ecfada9eca7bcbb09dcfc29c07854ac6303b25d5a03c89230cdc003d357571
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Kitchen-Vmpool
2
2
 
3
+ ## Unreleased
4
+
5
+ ## v0.3.2
6
+ * Destroy process does not output correct hostname
7
+ * Delete old instances from used_instances pool
8
+
3
9
  ## v0.3.1
4
10
  * Ensures CRUD methods are public
5
11
 
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
@@ -1,3 +1,3 @@
1
1
  module KitchenVmpool
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -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 #{name} as unused")
55
+ info("Marking pool member #{state[:hostname]} as unused")
56
56
  else
57
- info("Marking pool member #{name} as used")
57
+ info("Marking pool member #{state[:hostname]} as used")
58
58
  end
59
59
  state.delete(:hostname)
60
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-vmpool
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman