1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

fix list_virtual_machines when using :folder

This commit is contained in:
Eric Stonfer 2012-01-27 11:05:39 -05:00
parent cfd96c6cc5
commit bdacbb1666

View file

@ -26,7 +26,7 @@ module Fog
# If the first path element contains "vm" this denotes the vmFolder
# and needs to be shifted out since each DC contains only one
# vmFolder
path_elements.shift if path_elements[0] = 'vm'
path_elements.shift if path_elements[0] == 'vm'
# Make sure @datacenters is populated (the keys are DataCenter instances)
self.datacenters.include? dc_name or raise ArgumentError, "Could not find a Datacenter named #{dc_name}"
# Get the datacenter managed object