From 3c9b1b45aab4e912ca85ba302de3f4a95d6cf52a Mon Sep 17 00:00:00 2001 From: Eyal Date: Sun, 10 Apr 2016 16:22:41 +0300 Subject: [PATCH] change port id property Change-Id: I36b6444399e4ed023cbf6c974c1ecd47ffb31ee9 --- vitrage/datasources/neutron/port/transformer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/vitrage/datasources/neutron/port/transformer.py b/vitrage/datasources/neutron/port/transformer.py index 662b034d1..435c87bd3 100644 --- a/vitrage/datasources/neutron/port/transformer.py +++ b/vitrage/datasources/neutron/port/transformer.py @@ -45,11 +45,8 @@ class PortTransformer(ResourceTransformerBase): super(PortTransformer, self).__init__(transformers) def _create_entity_key(self, entity_event): - port_id = 'port_id' if tbase.is_update_event(entity_event) \ - else 'id' key_fields = self._key_values(NEUTRON_PORT_DATASOURCE, - extract_field_value(entity_event, - port_id)) + extract_field_value(entity_event, 'id')) return tbase.build_key(key_fields) def _create_snapshot_entity_vertex(self, entity_event):