bug #3035: Update XPATH to the new VNET XML

This commit is contained in:
Ruben S. Montero committed 2014-07-23 17:36:32 +02:00
1 parent 3818754248
commit 568fbb8b68
1 file changed
+2 -2
+2 -2
View File
@@ -22,7 +22,7 @@ module ElasticIP
return vnet
end
ips = vnet.retrieve_elements('LEASES/LEASE[USED=0]/IP')
ips = vnet.retrieve_elements('AR_POOL/AR[USED_LEASES=0 and SIZE=1]/IP')
if ips.nil?
rc = OpenNebula::Error.new("There is no lease available to be allocated")
rc.ec2_code = "AddressLimitExceeded"
@@ -230,4 +230,4 @@ module ElasticIP
user.info
user.id
end
end
end