fog-vsphere 3.5.3 → 3.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b322423afd3ecad80527e44435b63e4ac851f51c62371621fcf2fbc7a9db70d6
4
- data.tar.gz: 2c76db9aad7f1e54e2cb6925916f4b4f8f8948c6f9c1e42858edba243b1a5c1f
3
+ metadata.gz: 894200caa04d87aa819573c86239ebc6f9f6050ff58f6bd8243f2cdb2ba3de62
4
+ data.tar.gz: 268630c771bab27449b795987b4368911b5531396ece00817bcab4a19845d162
5
5
  SHA512:
6
- metadata.gz: fb0a501011df49b658895e4dac2adc0e56ab6836a02cca91798dfda684f4a0d36afbf4585760c64e16a4be73ad109f39bb16500c356f2fdc375b2eed16cac82c
7
- data.tar.gz: b608e695c586fb22b81a00c43c7680437dd61e60233c6a9760debddfa47246884303c098a6a78844658b2903e95f46fff95272af989ccd3f08241924f9ae29e9
6
+ metadata.gz: c04c8a90cda3331a694eddbe9d4d9e6d0942b47ddf4a824808295fd904dc68b3bed3830a10fde6120ad681a3a8c8534970a1133eee209fd713f5d0b5a1b67994
7
+ data.tar.gz: 1d18e55c8326a30f9e2c52ddbff9a87d1f90242b959a8e7eea1b86270134901217b5c61d40890e71cd9f5edcb1ced2c79f9464254453a2536c5b7c490f409af8
data/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## 3.6.0
2
+ * Switch to rbvmomi2 (#281)
3
+ * Raise the minimum Ruby version to 2.7 (#280)
4
+ * Set server tests to pending
5
+ * Remove simplecov setup
6
+ * Update vcr to 6.x
7
+ * Update Rubocop to 1.39.x
8
+ * Raise the minimum Ruby version to 2.7
9
+ * Convert to GitHub Actions
10
+
11
+ ## 3.5.2
12
+ * Avoid unneeded "get_raw_datacenter" call (#277)
13
+ * New NIC ID decrements from initial random int to avoid collisions (#275)
14
+
1
15
  ## v3.5.1
2
16
  * Creating ESX compute resource on vcenter 7.x fails with InvalidArgument: A specified parameter was not correct: deviceChange[1].device.key (#272)
3
17
 
data/CONTRIBUTORS.md CHANGED
@@ -18,6 +18,7 @@
18
18
  * Francois Herbert <fherbert@oss.co.nz>
19
19
  * Francois Herbert <francois@herbert.org.nz>
20
20
  * Guido Günther <agx@sigxcpu.org>
21
+ * Hao Chang Yu <hyu@redhat.com>
21
22
  * Ivan Nečas <inecas@redhat.com>
22
23
  * Ivo Reznicek <ireznice@googlemail.com>
23
24
  * J.R. Garcia <jr@garciaole.com>
data/fog-vsphere.gemspec CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.required_ruby_version = '>= 2.7'
23
23
 
24
24
  spec.add_runtime_dependency 'fog-core'
25
- spec.add_runtime_dependency 'rbvmomi', '>= 1.9', '< 3'
25
+ spec.add_runtime_dependency 'rbvmomi2', '~> 3.0'
26
26
 
27
27
  spec.add_development_dependency 'bundler'
28
28
  spec.add_development_dependency 'pry', '~> 0.10'
@@ -38,7 +38,7 @@ module Fog
38
38
  # only the one will do
39
39
  proc do |n|
40
40
  n._ref == ref_or_name || (
41
- n.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) && (n.name == ref_or_name || n.key == ref_or_name) &&
41
+ n.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) && (n.name == ref_or_name) &&
42
42
  (n.config.distributedVirtualSwitch.name == distributedswitch)
43
43
  )
44
44
  end
@@ -46,12 +46,12 @@ module Fog
46
46
  # the first distributed virtual switch will do - selected by network - gives control to vsphere
47
47
  proc do |n|
48
48
  n._ref == ref_or_name || (
49
- n.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) && (n.name == ref_or_name || n.key == ref_or_name)
49
+ n.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) && (n.name == ref_or_name)
50
50
  )
51
51
  end
52
52
  else
53
53
  # the first matching network will do, seems like the non-distributed networks come first
54
- proc { |n| n._ref == ref_or_name || n.name == ref_or_name || (n.is_a?(RbVmomi::VIM::DistributedVirtualPortgroup) && n.key == ref_or_name) }
54
+ proc { |n| n._ref == ref_or_name || n.name == ref_or_name }
55
55
  end
56
56
  end
57
57
  end
@@ -30,17 +30,15 @@ module Fog
30
30
  virtualswitch: dvswitches[network['config.distributedVirtualSwitch']._ref]
31
31
  )
32
32
  elsif network.obj.is_a?(RbVmomi::VIM::OpaqueNetwork)
33
- map_attrs_to_hash(network, network_dvportgroup_attribute_mapping).merge(
34
- id: network.obj._ref,
33
+ map_attrs_to_hash(network, network_attribute_mapping).merge(
35
34
  opaqueNetworkId: network.obj.summary.opaqueNetworkId
36
35
  )
37
36
  else
38
- map_attrs_to_hash(network, network_attribute_mapping).merge(
39
- id: network.obj._ref
40
- )
37
+ map_attrs_to_hash(network, network_attribute_mapping)
41
38
  end.merge(
42
- datacenter: datacenter_name,
43
- _ref: network.obj._ref
39
+ _ref: network.obj._ref,
40
+ id: managed_obj_id(network.obj),
41
+ datacenter: datacenter_name
44
42
  )
45
43
  end.compact
46
44
  end
@@ -56,7 +54,7 @@ module Fog
56
54
 
57
55
  def network_dvportgroup_attribute_mapping
58
56
  network_attribute_mapping.merge(
59
- id: 'config.key'
57
+ dvp_uuid: 'config.key'
60
58
  )
61
59
  end
62
60
 
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '3.5.3'.freeze
3
+ VERSION = '3.6.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fog-vsphere
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.3
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - J.R. Garcia
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-21 00:00:00.000000000 Z
11
+ date: 2022-12-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core
@@ -25,25 +25,19 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rbvmomi
28
+ name: rbvmomi2
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '1.9'
34
- - - "<"
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
- version: '3'
33
+ version: '3.0'
37
34
  type: :runtime
38
35
  prerelease: false
39
36
  version_requirements: !ruby/object:Gem::Requirement
40
37
  requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: '1.9'
44
- - - "<"
38
+ - - "~>"
45
39
  - !ruby/object:Gem::Version
46
- version: '3'
40
+ version: '3.0'
47
41
  - !ruby/object:Gem::Dependency
48
42
  name: bundler
49
43
  requirement: !ruby/object:Gem::Requirement