Skip to content
Snippets Groups Projects
Verified Commit 5f717e31 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

rpm: Adapt lister constructor to accept the credentials parameter

Refs. swh/infra/sysadm-environment#5030
parent a02fdbb4
No related branches found
Tags v5.9.9
1 merge request!500rpm: Adapt lister constructor to accept the credentials parameter
Pipeline #4167 passed
...@@ -14,6 +14,7 @@ from urllib.parse import urljoin ...@@ -14,6 +14,7 @@ from urllib.parse import urljoin
import repomd import repomd
from typing_extensions import TypedDict from typing_extensions import TypedDict
from swh.lister.pattern import CredentialsType
from swh.scheduler.interface import SchedulerInterface from swh.scheduler.interface import SchedulerInterface
from swh.scheduler.model import ListedOrigin from swh.scheduler.model import ListedOrigin
...@@ -111,12 +112,13 @@ class RPMLister(Lister[RPMListerState, RPMPageType]): ...@@ -111,12 +112,13 @@ class RPMLister(Lister[RPMListerState, RPMPageType]):
max_origins_per_page: Optional[int] = None, max_origins_per_page: Optional[int] = None,
max_pages: Optional[int] = None, max_pages: Optional[int] = None,
enable_origins: bool = True, enable_origins: bool = True,
credentials: Optional[CredentialsType] = None,
): ):
super().__init__( super().__init__(
scheduler=scheduler, scheduler=scheduler,
url=url, url=url,
instance=instance, instance=instance,
credentials={}, credentials=credentials,
max_origins_per_page=max_origins_per_page, max_origins_per_page=max_origins_per_page,
max_pages=max_pages, max_pages=max_pages,
enable_origins=enable_origins, enable_origins=enable_origins,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment