ALBS-931 Added integration with AlmaLinux Build System (errata feed) #3
Loading…
Add table
Add a link
Reference in a new issue
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