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

F #5446: Now OpenNebula returns key instead of value (#523)

This commit is contained in:
juanmont 2017-10-09 18:21:29 +02:00 committed by Ruben S. Montero
parent 8b31c3d448
commit ec74047987

View File

@ -799,6 +799,7 @@ bool Template::check_restricted(string& ra,
{
if ( (*va_it)->vector_value(*jt, ra) == 0 )
{
ra = *jt;
return true;
}
}
@ -806,6 +807,7 @@ bool Template::check_restricted(string& ra,
}
else if ( get(rit->first, ra) ) //Single Attribute
{
ra = rit->first;
return true;
}
}