vcenter_lib_mongodb 0.0.3 → 0.0.4

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: e774294e886d7f4789ed55d20b160396b107b708
4
- data.tar.gz: 3c51c342f2e7ed321bb72f1f0053ad575df7135c
3
+ metadata.gz: c75d0f6f35e90e5448cee99d4620aa1467f8fcbe
4
+ data.tar.gz: e1b47adb7c8e0fc0c1e634a17fe57fdfc2da1c57
5
5
  SHA512:
6
- metadata.gz: 1741d6309d001ffc6089ae34e07410ab5b1c82a6b49a6944acda81de6c3f27d5161cb9d8e5a55c65c05b97dbef44757ed373996bf8d46e8b787f2624123a21db
7
- data.tar.gz: 309148795350798c58d634c460362994ff5e08624a616a88e564caed79cb336119e8acc5caf3411d989105fa591724d9e620d5761ef5e1af2df2e9fffee15fd9
6
+ metadata.gz: 4eded0bdf423a2d746da1d4e44f6310760fcc40d71b72ebebb183ae33fe91cb3f390420df9a3c8952529b65cdce23b4e8c9ed9594b12bf8328ad08068a73801b
7
+ data.tar.gz: 13d8ce665f819bded3ec7671a3c22db72e512d6cbc928120d6f1620d2a941be15836c6ed6c99efa9d04a38a9467bd151231c3ef67b01db70a489c5ecf6e534d5
@@ -34,9 +34,9 @@ module VcenterLibMongodb
34
34
  #
35
35
  # @param query [String] a query for VMs.
36
36
  # nil or white space only string will return all VMs
37
- # @return [Array<String>] names of nodes that fulfill the query
37
+ # @return [Array<String>] names of VMs that fulfill the query
38
38
  def query_vms(query)
39
- return all_nodes if query.nil? || query.strip.empty?
39
+ return all_vms if query.nil? || query.strip.empty?
40
40
  mongo_query = convert.query(query)
41
41
  collection = connection[vms_collection]
42
42
  collection.find(mongo_query).batch_size(999).projection(_id: 1).map { |k| k[:_id] }
@@ -1,3 +1,3 @@
1
1
  module VcenterLibMongodb
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vcenter_lib_mongodb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Meyling