Skip to content

Commit

Permalink
Merge pull request #2531 from DimStar77/master
Browse files Browse the repository at this point in the history
adi: stage Non-Ring delete requests in adi projects
  • Loading branch information
DimStar77 committed Mar 3, 2021
2 parents e68b5e0 + a7bb286 commit 72b4575
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion osclib/adi_command.py
Expand Up @@ -84,7 +84,7 @@ def create_new_adi(self, wanted_requests, by_dp=False, split=False):
requests.append(rf.load_request(p))

splitter = RequestSplitter(self.api, requests, in_ring=False)
splitter.filter_add('./action[@type="submit"]')
splitter.filter_add('./action[@type="submit" or @type="delete"]')
if len(wanted_requests):
splitter.filter_add_requests([str(p) for p in wanted_requests])
# wanted_requests forces all requests into a single group.
Expand Down
3 changes: 0 additions & 3 deletions osclib/request_splitter.py
Expand Up @@ -131,9 +131,6 @@ def supplement(self, request):
ring = self.ring_get(target_package)
if ring:
target.set('ring', ring)
elif not self.api.conlyadi and request_type == 'delete':
# Delete requests should always be considered in a ring.
target.set('ring', 'delete')

request_id = int(request.get('id'))
if request_id in self.requests_ignored:
Expand Down

0 comments on commit 72b4575

Please sign in to comment.