From d4be3e52575b177b9a4fe39dff244631270bcde4 Mon Sep 17 00:00:00 2001 From: Sergio Betanzos Date: Wed, 10 Mar 2021 18:09:20 +0100 Subject: [PATCH] F #664: Fix import service with images (#943) --- src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb b/src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb index 8974f47f51..7bf34ee133 100644 --- a/src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb +++ b/src/sunstone/models/OpenNebulaJSON/MarketPlaceAppJSON.rb @@ -104,7 +104,7 @@ module OpenNebulaJSON ids_images = [] - if (params['IMPORT_ALL'] == 'yes') + if params['IMPORT_ALL'] vm_templates_ids.each { |id| template = Template.new_with_id(id, @client) template.info @@ -141,7 +141,7 @@ module OpenNebulaJSON error_code, rc = s_template.mp_import(templates, market_id, template_name) if error_code == -1 - if (params['IMPORT_ALL'] == 'yes') + if params['IMPORT_ALL'] ids_images.each do |id| app = MarketPlaceApp.new_with_id(id, @client)