Skip to content

Commit

Permalink
Escape VM and storage separately
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiendupont committed Feb 12, 2019
1 parent dbcaf06 commit cc2cb67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/service_template_transformation_plan_task.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def conversion_options_source_provider_vmwarews_vddk(_storage)

def conversion_options_source_provider_vmwarews_ssh(storage)
{
:vm_name => URI::Generic.build(:scheme => 'ssh', :userinfo => 'root', :host => source.host.ipaddress, :path => "/vmfs/volumes").to_s + CGI.escape("/#{storage.name}/#{source.location}"),
:vm_name => URI::Generic.build(:scheme => 'ssh', :userinfo => 'root', :host => source.host.ipaddress, :path => "/vmfs/volumes").to_s + "/#{CGI.escape(storage.name)}/#{CGI.escape(source.location)}",
:transport_method => 'ssh'
}
end
Expand Down

0 comments on commit cc2cb67

Please sign in to comment.