From afbba2c77bc7e5a848d271132c4a060e02894345 Mon Sep 17 00:00:00 2001 From: Brian McClain Date: Sun, 29 Apr 2012 01:32:40 -0400 Subject: [PATCH] Fixed invalid constant reference to Vim:DistributedVirtualPortgroup, now references Vim::Dvs::DistributedVirtualPortgroup Change-Id: I04edf9730bc53d9d4c341a13030ad5e314b7fdee --- vsphere_cpi/lib/cloud/vsphere/cloud.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vsphere_cpi/lib/cloud/vsphere/cloud.rb b/vsphere_cpi/lib/cloud/vsphere/cloud.rb index ad50e013eec..f131a0b8a42 100644 --- a/vsphere_cpi/lib/cloud/vsphere/cloud.rb +++ b/vsphere_cpi/lib/cloud/vsphere/cloud.rb @@ -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)