Skip to content

Commit 2b63f2c

Browse files
committed
Resolved some issues that lint found.
1 parent 34b7e59 commit 2b63f2c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Monitoring/ingest_nas_audit_logs_into_cloudwatch/ingest_audit_log.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def readFile(ontapAdminServer, headers, volumeUUID, filePath):
168168
f.write(part.content)
169169
else:
170170
print(f'Warning: API call to {endpoint} failed. HTTP status code: {response.status}.')
171-
filed = True
172171
break
173172

174173
f.close()
@@ -376,7 +375,7 @@ def checkConfig():
376375
try:
377376
response = s3Client.get_object(Bucket=config['s3BucketName'], Key=config['fsxnSecretARNsFile'])
378377
except botocore.exceptions.ClientError as err:
379-
raise Exception(f"Unable to open parameter file with secrets '{fsxnSecretARNsFile}' from S3 bucket '{s3BucketName}': {err}")
378+
raise Exception(f"Unable to open parameter file with secrets '{config['fsxnSecretARNsFile']}' from S3 bucket '{config['s3BucketName']}': {err}")
380379
else:
381380
for line in response['Body'].iter_lines():
382381
line = line.decode('utf-8')

0 commit comments

Comments
 (0)