Commit 9fadc047 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

SIMAP Connector:

- Bug fix in SimapUpdater
parent b6926560
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -91,8 +91,9 @@ class EventDispatcher(BaseEventDispatcher):
        topology = self._object_cache.get(CachedEntities.TOPOLOGY, topology_uuid)
        topology_name = topology.name
        
        supporting_network_ids = list()
        if topology_name != DEFAULT_TOPOLOGY_NAME:
            supporting_network_ids = [DEFAULT_TOPOLOGY_NAME]
            supporting_network_ids.append(DEFAULT_TOPOLOGY_NAME)

        # Theoretically it should be create(), but given we have multiple clients
        # updating same SIMAP server, use update to skip tricks on get-check-create-or-update.
@@ -112,8 +113,9 @@ class EventDispatcher(BaseEventDispatcher):
        topology = self._object_cache.get(CachedEntities.TOPOLOGY, topology_uuid)
        topology_name = topology.name

        supporting_network_ids = list()
        if topology_name != DEFAULT_TOPOLOGY_NAME:
            supporting_network_ids = [DEFAULT_TOPOLOGY_NAME]
            supporting_network_ids.append(DEFAULT_TOPOLOGY_NAME)

        # Theoretically it should be create(), but given we have multiple clients
        # updating same SIMAP server, use update to skip tricks on get-check-create-or-update.