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

B #2402: Fixed bug with restricted attributes when extra template is empty

This commit is contained in:
juanmont 2018-09-10 15:46:03 +02:00 committed by Ruben S. Montero
parent 536c22b12f
commit 6e1c272b03

View File

@ -734,7 +734,7 @@ bool Template::check_restricted(string& ra, const Template* base,
restricted_values(rit->first, rit->second, this, rvalues);
restricted_values(rit->first, rit->second, base, rvalues_base);
if ( rvalues != rvalues_base )
if ( rvalues != rvalues_base && !rvalues.empty())
{
ra = rit->first;
return true;