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

This commit is contained in:
juanmont authored and Ruben S. Montero committed 2017-10-09 18:21:29 +02:00
1 parent 8b31c3d448
commit ec74047987
1 file changed
+2
+2
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;
}
}