From 3099a309154cd202fb95163f52284d0a17d93886 Mon Sep 17 00:00:00 2001 From: Keith Cantrell Date: Mon, 11 Nov 2024 08:20:32 -0600 Subject: [PATCH] Fixed an issue with a string not using quotes and double quotes properly. --- .../ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Monitoring/ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py b/Monitoring/ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py index 695ac71..0a82086 100644 --- a/Monitoring/ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py +++ b/Monitoring/ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py @@ -348,7 +348,7 @@ def lambda_handler(event, context): continue # # Get all the files in the volume that match the audit file pattern. - endpoint = f'https://{fsxn}/api/storage/volumes/{volumeUUID}/files?name=audit_{config['vserverName']}_D*&order_by=name%20asc&fields=name' + endpoint = f"https://{fsxn}/api/storage/volumes/{volumeUUID}/files?name=audit_{config['vserverName']}_D*&order_by=name%20asc&fields=name" response = http.request('GET', endpoint, headers=headersQuery, timeout=5.0) data = json.loads(response.data.decode('utf-8')) for file in data['records']: