plugin/builder: silence some pylint warnings
The 'koji' parameter for the compose request is called that way to follow the OpenAPI spec, so silence the "redefined-outer-name" warning. The handler function needs have the actual task arguments and thus on purpose deviates from the argument list of the base class' handler method. So silence that.
This commit is contained in:
parent
6f1d685d9b
commit
e3ce5f7c7b
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ class ComposeRequest:
|
|||
self.server = server
|
||||
self.task_id = task_id
|
||||
|
||||
# pylint: disable=redefined-outer-name
|
||||
def __init__(self, nvr: NVR, distro: str, ireqs: List[ImageRequest], koji: Koji):
|
||||
self.nvr = nvr
|
||||
self.distribution = distro
|
||||
|
|
@ -246,6 +247,7 @@ class OSBuildImage(BaseTaskHandler):
|
|||
self.logger.debug("user repo override: %s", urls)
|
||||
return [Repository(u.strip()) for u in urls]
|
||||
|
||||
# pylint: disable=arguments-differ
|
||||
def handler(self, name, version, distro, image_types, target, arches, opts):
|
||||
"""Main entry point for the task"""
|
||||
self.logger.debug("Building image via osbuild %s, %s, %s, %s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue