mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
bug #4390: econe server makes an explicit to_i conversion of string
instance id's. This could be moved to the OCA build_xml functions.
This commit is contained in:
parent
8afe787ee0
commit
f8f83da64f
@ -120,7 +120,7 @@ module ElasticIP
|
||||
user_id = retrieve_uid
|
||||
eip = params["PublicIp"]
|
||||
vmid = params['InstanceId']
|
||||
vmid = vmid.split('-')[1] if vmid[0]==?i
|
||||
vmid = vmid.split('-')[1].to_i if vmid[0]==?i
|
||||
|
||||
unless vnet["TEMPLATE/EC2_ADDRESSES[IP=\"#{eip}\" and UID=\"#{retrieve_uid}\"]/IP"]
|
||||
rc = OpenNebula::Error.new("address:#{eip} does not exist")
|
||||
|
Loading…
x
Reference in New Issue
Block a user