Skip to content

Commit

Permalink
Fix bug in resource mgr round robin function.
Browse files Browse the repository at this point in the history
Fixing bug where function did not add acquired allocation objects to the
assembled collection of such objects, and thus only an empty list was
returned.
  • Loading branch information
robertbartel authored and aaraney committed May 11, 2024
1 parent 03a7630 commit 009c3de
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,4 +362,5 @@ def allocate_round_robin(self, cpus: int, memory: int,
if not isinstance(alloc, ResourceAllocation):
self.release_resources(allocations)
return [None]
allocations.append(alloc)
return allocations

0 comments on commit 009c3de

Please sign in to comment.