Skip to content

Commit

Permalink
Address PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AparnaKarve committed Jun 1, 2018
1 parent b89997d commit 9852eb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/controllers/mixins/ems_common_angular.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require 'openssl'
require 'webrick/httputils'

module Mixins
module EmsCommonAngular
Expand Down Expand Up @@ -128,7 +129,7 @@ def get_task_args(ems)
connect_opts = [MiqPassword.encrypt(params[:amqp_password]), params.to_hash.symbolize_keys.slice(*OPENSTACK_AMQP_PARAMS)] if params[:cred_type] == "amqp"
connect_opts
when 'ManageIQ::Providers::Amazon::CloudManager'
uri = URI.parse(params[:default_url])
uri = URI.parse(WEBrick::HTTPUtils.escape(params[:default_url]))
[user, password, :EC2, params[:provider_region], ems.http_proxy_uri, true, uri]
when 'ManageIQ::Providers::Azure::CloudManager'
[user, password, params[:azure_tenant_id], params[:subscription], ems.http_proxy_uri, params[:provider_region]]
Expand Down Expand Up @@ -651,7 +652,7 @@ def set_ems_record_vars(ems, mode = nil)
end

if ems.kind_of?(ManageIQ::Providers::Amazon::CloudManager)
uri = URI.parse(params[:default_url])
uri = URI.parse(WEBrick::HTTPUtils.escape(params[:default_url]))
default_endpoint = {:role => :default, :hostname => uri.host, :port => uri.port, :path => uri.path, :url => params[:default_url]}
end

Expand Down

0 comments on commit 9852eb2

Please sign in to comment.