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

M #-: fix minor bug in service tpl clone (#1168)

(cherry picked from commit 76bc1813f01ac8525c18769eb91690f6313ab04c)
This commit is contained in:
Alejandro Huertas Herrero 2021-04-29 18:30:34 +02:00 committed by Ruben S. Montero
parent a7363f1cc6
commit 727959b922
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -361,8 +361,8 @@ module OpenNebula
# exceeds the limit
new_name = "#{template.name}-#{name}"
if new_name.size > 128
new_name = "#{template.name[0..(126 - name.size)]}-#{name}"
if new_name.size > 119
new_name = "#{template.name[0..(119 - name.size)]}-#{name}"
end
rc = template.clone(new_name, recursive)