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

feature #3175: Fix error rebuilding AR security groups

This commit is contained in:
Ruben S. Montero 2014-11-13 00:33:08 +01:00
parent c77ccc3663
commit 8a22a6d885

View File

@ -364,6 +364,15 @@ int AddressRange::from_vattr_db(VectorAttribute *vattr)
rc += attr_to_allocated(vattr->vector_value("ALLOCATED"));
value = vattr->vector_value("SECURITY_GROUPS");
security_groups.clear();
if (!value.empty())
{
one_util::split_unique(value, ',', security_groups);
}
if (type == NONE)
{
rc = -1;