From 5a4d74936b1cc97a8c1c07cd9f604dfc15a4d126 Mon Sep 17 00:00:00 2001 From: Darryl Nixon Date: Sun, 16 Jul 2023 10:34:00 -0700 Subject: [PATCH] Fix reference to job.hash which should check for the exhaustive flag from CLI invoke --- melamine/shred.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/melamine/shred.py b/melamine/shred.py index 67f0bd6..cba00bb 100644 --- a/melamine/shred.py +++ b/melamine/shred.py @@ -38,6 +38,6 @@ async def main(job) -> bool: # Shred all physical files including hardlinks for path in job.paths: if isinstance(path, ShredFile): - await path.shred(job.hash, job.dryrun) + await path.shred(hash=job.exhaustive, dryrun=job.dryrun) elif isinstance(path, ShredDir): - await path.shred(job.hash, job.dryrun) + await path.shred(hash=job.exhaustive, dryrun=job.dryrun)