Skip to content

Commit

Permalink
Fixed invalid constant reference to Vim:DistributedVirtualPortgroup, …
Browse files Browse the repository at this point in the history
…now references Vim::Dvs::DistributedVirtualPortgroup

Change-Id: I04edf9730bc53d9d4c341a13030ad5e314b7fdee
  • Loading branch information
BrianMMcClain committed Apr 29, 2012
1 parent 414d49f commit afbba2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vsphere_cpi/lib/cloud/vsphere/cloud.rb
Expand Up @@ -906,7 +906,7 @@ def create_disk_config_spec(datastore, file_name, controller_key, space, options
def create_nic_config_spec(v_network_name, network, controller_key, dvs_index)
raise "Can't find network: #{v_network_name}" if network.nil?
if network.class == Vim::Dvs::DistributedVirtualPortgroup
portgroup_properties = client.get_properties(network, Vim::DistributedVirtualPortgroup,
portgroup_properties = client.get_properties(network, Vim::Dvs::DistributedVirtualPortgroup,
["config.key", "config.distributedVirtualSwitch"],
:ensure_all => true)

Expand Down

0 comments on commit afbba2c

Please sign in to comment.