From 69c5a9dd90e7ce9eb20d707a3e991c23488fcb26 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 5 Dec 2022 10:31:09 -0500 Subject: [PATCH] ensure tmp files are not processed --- salt/strelka/filecheck/filecheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/strelka/filecheck/filecheck b/salt/strelka/filecheck/filecheck index 73f24c7aa..146625552 100644 --- a/salt/strelka/filecheck/filecheck +++ b/salt/strelka/filecheck/filecheck @@ -47,7 +47,7 @@ def checkexisting(): logging.error("Failed to process file: " + file) def checksum(filename): - if os.path.isfile(filename) && "/tmp/" not in filename: + if os.path.isfile(filename) and "/tmp/" not in filename: with open(filename, 'rb') as afile: logging.info("Processing file: " + filename) shawnuff = hashlib.sha1()