1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-04-01 06:50:25 +03:00

bug #3035: Update XPATH to the new VNET XML

This commit is contained in:
Ruben S. Montero 2014-07-23 17:36:32 +02:00
parent 3818754248
commit 568fbb8b68

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