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:
parent
3e1ecf15b6
commit
bc99cd9c19
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue