1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #4777: Multiple security groups breaks the poll probe of EC2

This commit is contained in:
Jaime Melis 2016-09-14 11:48:40 +02:00
parent 0d5b532a83
commit 91337ed00c

View File

@ -133,11 +133,11 @@ class EC2Driver
#},
"SECURITYGROUPS" => {
:opt => 'security_groups',
:proc => lambda {|str| str.split(',')}
:proc => lambda {|str| str.split(/,\s*/)}
},
"SECURITYGROUPIDS" => {
:opt => 'security_group_ids',
:proc => lambda {|str| str.split(',')}
:proc => lambda {|str| str.split(/,\s*/)}
},
"AVAILABILITYZONE" => {
:opt => 'placement/availability_zone'
@ -586,7 +586,7 @@ private
}.join(",")
end
info << "AWS_#{key.to_s.upcase}=#{URI::encode(value)} "
info << "AWS_#{key.to_s.upcase}=\\\"#{URI::encode(value)}\\\" "
end
}