Skip to content

Commit

Permalink
remove excludes from get_existing_reservations
Browse files Browse the repository at this point in the history
  • Loading branch information
kthare10 committed Jul 9, 2024
1 parent ed2753a commit 3575165
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions fabric_cf/actor/core/policy/broker_simpler_units_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1452,15 +1452,13 @@ def get_network_service_from_graph(self, *, node_id: str,
self.lock.release()

def get_existing_reservations(self, node_id: str, node_id_to_reservations: dict,
start: datetime = None, end: datetime = None,
excludes: List[str] = None) -> List[ABCReservationMixin]:
start: datetime = None, end: datetime = None) -> List[ABCReservationMixin]:
"""
Get existing reservations which are served by CBM node identified by node_id
:param node_id:
:param node_id_to_reservations:
:param start
:param end
:param excludes:
:return: list of reservations
"""
states = [ReservationStates.Active.value,
Expand All @@ -1472,8 +1470,7 @@ def get_existing_reservations(self, node_id: str, node_id_to_reservations: dict,
existing_reservations = self.actor.get_plugin().get_database().get_reservations(graph_node_id=node_id,
states=states,
start=start,
end=end,
excludes=excludes)
end=end)

reservations_allocated_in_cycle = node_id_to_reservations.get(node_id, None)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencies = [
"PyYAML",
"fabric_fss_utils==1.5.0",
"fabric-message-bus==1.7.0b1",
"fabric-fim==1.7.0b13",
"fabric-fim==1.7.0b14",
"fabric-credmgr-client==1.6.0",
"ansible"
]
Expand Down

0 comments on commit 3575165

Please sign in to comment.