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

Fix for bug in EC2 drivers: CLOUD attr now is really optional

git-svn-id: http://svn.opennebula.org/one/trunk@702 3034c82b-c49b-4eb3-8279-a7acafdc01c0
This commit is contained in:
Constantino Vázquez Blanco 2009-07-17 17:28:54 +00:00
parent 6d54fe669b
commit f951689af3

View File

@ -109,8 +109,9 @@ class EC2Driver < VirtualMachineDriver
# First, let's see if we have an EC2 site that matches
# our desired host name
all_ec2_elements.each { |element|
if element.elements["CLOUD"].text.upcase == host.upcase
all_ec2_elements.each { |element|
cloud=element.elements["CLOUD"]
if cloud and cloud.text.upcase == host.upcase
ec2 = element
end
}