1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

bug #2820: URI encode instead of deleting blanks

This commit is contained in:
Ruben S. Montero 2014-04-10 11:27:36 +02:00
parent b16d5a750d
commit 01a47e9d8c

View File

@ -32,6 +32,7 @@ EC2_DRIVER_DEFAULT = "#{ETC_LOCATION}/ec2_driver.default"
require 'yaml'
require 'rubygems'
require 'aws-sdk'
require 'uri'
$: << RUBY_LIB_LOCATION
@ -442,8 +443,8 @@ private
v.security_group_id if v.is_a?(AWS::EC2::SecurityGroup)
}.join(",")
end
value.delete!(" ")
info << "AWS_#{key.to_s.upcase}=#{value} "
info << "AWS_#{key.to_s.upcase}=#{URI::encode(value)} "
end
}