1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: minor fix in OneFlow (#4550)

This commit is contained in:
Alejandro Huertas Herrero 2020-04-17 13:25:22 +02:00 committed by GitHub
parent 6f94142ae8
commit ebd8aaf931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -539,7 +539,7 @@ post '/service_template/:id/action' do
# Existing: "net": "M|network|| |id:0"
# Instantiate: "net": "M|network|| |template_id:1"
# Reserve: "net": "M|network|| |reserve_from:0"
value = value.split('||')[1].gsub('|', '').strip.split(':')
value = value.split('|')[4].strip.split(':')
net[key][value[0]] = value[1]