From 6e564c71db3b81005a47ac37bf9e75691ff938b3 Mon Sep 17 00:00:00 2001 From: Carlos Matos Date: Tue, 22 Oct 2024 15:22:30 -0400 Subject: [PATCH] lint: ignore bandit warning --- plugins/modules/sensor_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/sensor_download.py b/plugins/modules/sensor_download.py index 52f2385..fec1342 100644 --- a/plugins/modules/sensor_download.py +++ b/plugins/modules/sensor_download.py @@ -139,7 +139,7 @@ def lock_file(file_path, exclusive=True, timeout=300, retry_interval=5): lock_file_handle = open(lock_file_path, 'w', encoding='utf-8') # pylint: disable=consider-using-with start_time = time.time() # Implement a delay to prevent thundering herd - delay = random.random() + delay = random.random() # nosec while True: try: