Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Added deploymentOption parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
howels authored Aug 4, 2016
1 parent dc68d8a commit cc3469f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rbvmomi/vim/OvfManager.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class RbVmomi::VIM::OvfManager
# @option opts [String] :diskProvisioning (thin) Disk provisioning mode.
# @option opts [Hash] :networkMappings Network mappings.
# @option opts [Hash] :propertyMappings Property mappings.
# @option opts [String] :deploymentOption Deployment option key.
def deployOVF opts
opts = { :networkMappings => {},
:propertyMappings => {},
Expand All @@ -29,7 +30,7 @@ def deployOVF opts
:hostSystem => opts[:host],
:locale => "US",
:entityName => opts[:vmName],
:deploymentOption => "",
:deploymentOption => opts[:deploymentOption] || "",
:networkMapping => opts[:networkMappings].map{|from, to| RbVmomi::VIM::OvfNetworkMapping(:name => from, :network => to)},
:propertyMapping => opts[:propertyMappings].to_a,
:diskProvisioning => opts[:diskProvisioning]
Expand Down

0 comments on commit cc3469f

Please sign in to comment.