mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
bug #3035: Update XPATH to the new VNET XML
This commit is contained in:
1 parent
3818754248
commit
568fbb8b68
1 file changed
+2
-2
@@ -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
|
||||
Reference in new issue
Block a user