mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
This commit is contained in:
parent
ea4b31726d
commit
3932c7d56d
@ -27,9 +27,6 @@ module OpenNebulaJSON
|
|||||||
end
|
end
|
||||||
|
|
||||||
cluster_id = parse_json(template_json, 'cluster_id')
|
cluster_id = parse_json(template_json, 'cluster_id')
|
||||||
if OpenNebula.is_error?(cluster_id)
|
|
||||||
return cluster_id
|
|
||||||
end
|
|
||||||
|
|
||||||
if vnet_hash['vnet_raw']
|
if vnet_hash['vnet_raw']
|
||||||
template = vnet_hash['vnet_raw']
|
template = vnet_hash['vnet_raw']
|
||||||
@ -37,7 +34,9 @@ module OpenNebulaJSON
|
|||||||
template = template_to_str(vnet_hash)
|
template = template_to_str(vnet_hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
self.allocate(template, cluster_id.to_i)
|
if !OpenNebula.is_error?(cluster_id)
|
||||||
|
self.allocate(template, cluster_id.to_i)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform_action(template_json)
|
def perform_action(template_json)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user