From 20849798a494cc4b79b536a3f77c037a1946a3de Mon Sep 17 00:00:00 2001 From: "Carlos J. Herrera" Date: Mon, 5 Apr 2021 05:01:35 -0400 Subject: [PATCH] F #~: avoid template creation with template -1 (#1055) Signed-off-by: Carlos Herrera --- src/oca/ruby/opennebula/marketplaceapp_ext.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oca/ruby/opennebula/marketplaceapp_ext.rb b/src/oca/ruby/opennebula/marketplaceapp_ext.rb index 6db476e8ec..1f7be9a146 100644 --- a/src/oca/ruby/opennebula/marketplaceapp_ext.rb +++ b/src/oca/ruby/opennebula/marketplaceapp_ext.rb @@ -206,7 +206,8 @@ module OpenNebula::MarketPlaceAppExt #--------------------------------------------------------------- # Created an associated VMTemplate if needed #--------------------------------------------------------------- - if self['TEMPLATE/VMTEMPLATE64'].nil? || options[:notemplate] + if self['TEMPLATE/VMTEMPLATE64'].nil? || options[:notemplate] || + options[:template] == -1 return rc_info end