Skip to content

Commit 767d513

Browse files
authored
Merge pull request release-engineering#236 from mbooz-rh/RHELDST-35657
[RHELDST-35657] - Fix pulp search request
2 parents 381139d + 9ad6d59 commit 767d513

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/pubtools/pulplib/_impl/client/poller.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,10 @@ def log_if_inactive(self):
211211
# We've been idle for too long, log a message to confirm we're not dead
212212
search_url = os.path.join(self.url, "pulp/api/v2/tasks/search/")
213213
search = {
214-
"criteria": {"filters": {"state": {"$in": ["running", "waiting"]}}},
215-
"fields": ["state"],
214+
"criteria": {
215+
"filters": {"state": {"$in": ["running", "waiting"]}},
216+
"fields": ["state"],
217+
}
216218
}
217219

218220
response = self.session.post(search_url, json=search)

0 commit comments

Comments
 (0)