mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 05:04:56 +09:00
(cherry picked from commit 3932c7d56d)
This commit is contained in:
1 parent
5a799f3a02
commit
04111f46de
1 file changed
+3
-4
@@ -27,9 +27,6 @@ module OpenNebulaJSON
|
||||
end
|
||||
|
||||
cluster_id = parse_json(template_json, 'cluster_id')
|
||||
if OpenNebula.is_error?(cluster_id)
|
||||
return cluster_id
|
||||
end
|
||||
|
||||
if vnet_hash['vnet_raw']
|
||||
template = vnet_hash['vnet_raw']
|
||||
@@ -37,7 +34,9 @@ module OpenNebulaJSON
|
||||
template = template_to_str(vnet_hash)
|
||||
end
|
||||
|
||||
self.allocate(template, cluster_id.to_i)
|
||||
if !OpenNebula.is_error?(cluster_id)
|
||||
self.allocate(template, cluster_id.to_i)
|
||||
end
|
||||
end
|
||||
|
||||
def perform_action(template_json)
|
||||
|
||||
Reference in new issue
Block a user