fog-vsphere 2.1.0 → 2.1.1

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: f79b2fda04ea3983ad8eb745f642e7b94d10790dfe23d63348aba52dceb1e5bc
4
- data.tar.gz: aa888887668bf44fec6f238629592174d94d979fa8c986af17adf70a0ce14667
3
+ metadata.gz: 87c94e63f2cec168825d797d960e7e0ef3adefb02687c4007b56451ae07666e7
4
+ data.tar.gz: 2ea05f4bf6f0fc3043d7d2f9d6323edbf82a5727c07de80ceefb7177157cf6e8
5
5
  SHA512:
6
- metadata.gz: db0e26ac2e3417ce2a8c39369c8f01aba9474200684f07d3392d79a9a589a938daf673fcb54d1f7f710aec8043db856459ebe57d5de96c5232d627b467c5d767
7
- data.tar.gz: d7304c9307b5eb405e21195c56cbf35c8106be6cfdd00cc91bc2bcaa941f3097867d1b14757420b37a5a81d6b6acf1643263cd492b5e1b78d099e081e40e5957
6
+ metadata.gz: ec3396a601b88ac91360e8afd0abfee1396f2c20ce99c78eb26ad8689da89f408f74cd4333d9c1c29642189319eebd4175cfd47a376bac3bd93aafae718ec82e
7
+ data.tar.gz: 4ceb831473e95b93a2fc8e837e87403b717c4cc91be0d80eed77ab479e37703c2a1a2024ba685744a03014df2cd89b6f9a66eeaf9eead273b47e4e2eedc5754f
@@ -1,3 +1,6 @@
1
+ ## v2.1.1
2
+ * fixes an issue where networks of type DVPort cannot be listed (#137)
3
+
1
4
  ## v2.1.0
2
5
  * fixes two issues that broke vm cloning (#134, #135)
3
6
  * performance of host listing was improved (#131)
@@ -27,7 +27,7 @@ module Fog
27
27
  if network.kind_of?(RbVmomi::VIM::DistributedVirtualPortgroup)
28
28
  id = network.key
29
29
  virtualswitch = network.config.distributedVirtualSwitch.name
30
- vlanid = raw_network_vlan_id(network.config.defaultPortConfig.vlan)
30
+ vlanid = raw_network_vlan(network.config.defaultPortConfig)
31
31
  else
32
32
  id = managed_obj_id(network)
33
33
  virtualswitch = nil
@@ -45,6 +45,15 @@ module Fog
45
45
 
46
46
  private
47
47
 
48
+ def raw_network_vlan(network)
49
+ case network
50
+ when RbVmomi::VIM::VMwareDVSPortSetting
51
+ raw_network_vlan_id(network.vlan)
52
+ else
53
+ nil
54
+ end
55
+ end
56
+
48
57
  def raw_network_vlan_id(vlan)
49
58
  case vlan
50
59
  when RbVmomi::VIM::VmwareDistributedVirtualSwitchVlanIdSpec
@@ -1,5 +1,5 @@
1
1
  module Fog
2
2
  module Vsphere
3
- VERSION = '2.1.0'.freeze
3
+ VERSION = '2.1.1'.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: 2.1.0
4
+ version: 2.1.1
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: 2018-04-06 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-core