Skip to content

Commit

Permalink
Bugfix/replace blank ref (#206)
Browse files Browse the repository at this point in the history
Bugfix/replace blank ref
  • Loading branch information
loperaja authored and chris1984 committed Apr 4, 2019
1 parent 27ce298 commit a9c486d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fog/vsphere/requests/compute/vm_clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,8 @@ def vm_clone(options = {})
end
end
# relocate templates is not supported by fog-vsphere when vm is cloned on a storage pod
unless options.key?('storage_pod')
unless options['volumes'].blank?
unless options.key?('storage_pod') || !options['volumes']
unless options['volumes'].empty?
relocation_spec[:disk] = relocate_template_volumes_specs(vm_mob_ref, options['volumes'], options['datacenter'])
end
end
Expand Down

0 comments on commit a9c486d

Please sign in to comment.