inputs/container: prefix unused arguments with _

The `data` argument is not used, prefix it with `_` so that pylint
knows this is intentional.
This commit is contained in:
Christian Kellner 2022-04-12 22:23:17 +02:00 committed by Achilleas Koutsou
parent 3e1ecf15b6
commit bc99cd9c19

View file

@ -121,14 +121,14 @@ SCHEMA = r"""
class ContainersInput(inputs.InputService):
@staticmethod
def map_source_ref(source, ref, data, target):
def map_source_ref(source, ref, _data, target):
cache_dir = os.path.join(source, ref)
os.link(os.path.join(cache_dir, "container-image.tar"), os.path.join(target, ref))
return ref, "docker-archive"
@staticmethod
def map_pipeline_ref(store, ref, data, target):
def map_pipeline_ref(store, ref, _data, target):
# prepare the mount point
os.makedirs(target, exist_ok=True)
print("target", target)