ALBS-931 Added integration with AlmaLinux Build System (errata feed) #3
No reviewers
Labels
No Label
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kzhukov/albs-oval-errata-diff#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "ALBS-931"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -0,0 +12,4 @@"""def __init__(self, url: str, token: str, timeout: int):if url.endswith('/'):It's not necessary if you fix comments below.
@ -0,0 +27,4 @@endpoint = '/api/v1/platforms/'headers = {'accept': 'application/json','Authorization': f'Bearer {self.token}'}response = requests.get(url=self.url+endpoint,self.url+endpointdon't do the same, please :)That code join part of an URL right in all cases
@ -0,0 +31,4 @@headers=headers,timeout=self.timeout)response.raise_for_status()res = {}That looks more pretty I guess
@ -0,0 +60,4 @@params = {'id': errata_id, 'platformId': platform_id}headers = {'accept': 'application/json','Authorization': f'Bearer {self.token}'}response = requests.get(url=self.url+endpoint,same as above
@ -0,0 +68,4 @@# errata_id was not foundif response_json['total_records'] == 0:return Nonejfyi,
return Noneis redundunt form ofreturn