Skip to content

Commit

Permalink
Fixes #30552 - Fix undefined method error when creating vmware host v…
Browse files Browse the repository at this point in the history
…ia hammer
  • Loading branch information
yifatmakias committed Aug 30, 2020
1 parent e658575 commit cdb952f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/compute_resources/foreman/model/vmware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ def clone_vm(raw_args)
"numCPUs" => args[:cpus],
"numCoresPerSocket" => args[:corespersocket],
"memoryMB" => args[:memory_mb],
"datastore" => args[:volumes].first[:datastore],
"storage_pod" => args[:volumes].first[:storage_pod],
"datastore" => args[:volumes].empty? ? nil : args[:volumes].first[:datastore],
"storage_pod" => args[:volumes].empty? ? nil : args[:volumes].first[:storage_pod],
"resource_pool" => [args[:cluster], args[:resource_pool]],
"boot_order" => [:disk],
"annotation" => args[:annotation],
Expand Down

0 comments on commit cdb952f

Please sign in to comment.