From 7d71609dfde0172c24be942c7965d71527735574 Mon Sep 17 00:00:00 2001 From: Alejandro Huertas Herrero Date: Thu, 21 Mar 2019 11:52:51 +0100 Subject: [PATCH] B #1666: Return -1 if the app has no vmtemplate associated --- src/oca/ruby/opennebula/marketplaceapp.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/oca/ruby/opennebula/marketplaceapp.rb b/src/oca/ruby/opennebula/marketplaceapp.rb index a67819a5a8..2c88ffbf74 100644 --- a/src/oca/ruby/opennebula/marketplaceapp.rb +++ b/src/oca/ruby/opennebula/marketplaceapp.rb @@ -297,7 +297,7 @@ module OpenNebula # @return [Integer, OpenNebula::Error] template id or error # TODO this method needs to be extended to support [image_ids] def create_vmtemplate(options, image_id = nil) - return if self['TEMPLATE/VMTEMPLATE64'].nil? + return -1 if self['TEMPLATE/VMTEMPLATE64'].nil? tmpl = Base64.decode64(self['TEMPLATE/VMTEMPLATE64'])