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:
parent
cfd96c6cc5
commit
bdacbb1666
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue