Commit b3b30f7a authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug with vm update.

parent 5c19eff3
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -96,9 +96,9 @@ class ObjectsDB(object):
                tags_novalue -= tags
        
        if ids is not None:
            ids = OrderedSet(ids)
            ids = set(ids)
        else:
            ids = OrderedSet(self._objects)
            ids = set(self._objects)

        # The main-loop, we will pop each object id from the set and
        # process it:
@@ -120,7 +120,9 @@ class ObjectsDB(object):

                # Search for sibling objects:
                sg = set((o for o in ids if o.startswith('%s.' % parent['id'])))
                sg &= ids
                ids -= sg
                sg.add(oid)

                for sibling in sg:
                    sibling = self.get_by_id(sibling)