1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-26 06:50:09 +03:00

B #5280: Solved bug in Sinatra (string->boolean) (#478)

This commit is contained in:
Abel Coronado 2017-09-15 16:24:17 +02:00 committed by Jaime Melis
parent da0ca8d6d0
commit b576243b06

View File

@ -245,8 +245,8 @@ get '/vcenter/template/:vcenter_ref/:template_id' do
ref = params[:vcenter_ref]
template_id = params[:template_id]
use_linked_clones = params[:use_linked_clones] || false
create_copy = params[:create_copy] || false
use_linked_clones = params[:use_linked_clones] != "false"
create_copy = params[:create_copy] != "false"
template_name = params[:template_name] || ""
if !ref || ref.empty?