From bc99cd9c19504d56079df6f99c64609c10535ce1 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 12 Apr 2022 22:23:17 +0200 Subject: [PATCH] inputs/container: prefix unused arguments with _ The `data` argument is not used, prefix it with `_` so that pylint knows this is intentional. --- inputs/org.osbuild.containers | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inputs/org.osbuild.containers b/inputs/org.osbuild.containers index f859cbaf..a787f42b 100755 --- a/inputs/org.osbuild.containers +++ b/inputs/org.osbuild.containers @@ -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)