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 committed 2009-07-17 17:28:54 +00:00
1 parent 6d54fe669b
commit f951689af3
1 file changed
+3 -2
+3 -2
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
}