Skip to content

Commit

Permalink
fixed a conditional that was assigining = rather than evaluating == i…
Browse files Browse the repository at this point in the history
…n vsphere clone routine. This resulted in cloning from folders always failing
  • Loading branch information
Eric Stonfer committed Jan 10, 2012
1 parent 598b031 commit 4ed540b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/vsphere/requests/compute/vm_clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def vm_clone(options = {})
template_dc = path_elements.shift
# If the first path element contains "vm" this denotes the vmFolder
# and needs to be shifted out
path_elements.shift if path_elements[0] = 'vm'
path_elements.shift if path_elements[0] == 'vm'
# The template name. The remaining elements are the folders in the
# datacenter.
template_name = path_elements.pop
Expand Down

0 comments on commit 4ed540b

Please sign in to comment.