1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

F #~: avoid template creation with template -1 (#1055)

Signed-off-by: Carlos Herrera <cherrera@opennebula.io>
This commit is contained in:
Carlos J. Herrera 2021-04-05 05:01:35 -04:00 committed by GitHub
parent 5b6ab8d940
commit 20849798a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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