Commit feeab8ca authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Context component:

- resolved database conflict while creating slice endpoints
parent 9537ddb3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -624,7 +624,7 @@ class ContextServiceServicerImpl(ContextServiceServicer):

                db_endpoint : EndPointModel = get_object(self.database, EndPointModel, str_endpoint_key)

                str_slice_endpoint_key = key_to_str([slice_uuid, str_endpoint_key], separator='--')
                str_slice_endpoint_key = key_to_str([str_slice_key, str_endpoint_key], separator='--')
                result : Tuple[SliceEndPointModel, bool] = get_or_create_object(
                    self.database, SliceEndPointModel, str_slice_endpoint_key, {
                        'slice_fk': db_slice, 'endpoint_fk': db_endpoint})