Skip to content

Commit 760267a

Browse files
committed
Update
1 parent a531cee commit 760267a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Config/Finding-Outdated-Instance-Types/lamba_function.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def lambda_handler(event, context):
1515
compliance_value = evaluate_compliance(
1616
invoking_event['configurationItem'], rule_parameters)
1717

18-
response = config.put_evaluations(
18+
config.put_evaluations(
1919
Evaluations=[
2020
{
2121
'ComplianceResourceType': invoking_event['configurationItem']['resourceType'],
@@ -31,12 +31,12 @@ def is_applicable(config_item, event):
3131
status = config_item['configurationItemStatus']
3232
event_left_scope = event['eventLeftScope']
3333
test = ((status in ['OK', 'ResourceDiscovered']) and
34-
event_left_scope == False)
34+
event_left_scope is False)
3535
return test
3636

3737

3838
def evaluate_compliance(config_item, rule_parameters):
39-
if (config_item['resourceType'] != 'AWS::EC2::Instance'):
39+
if config_item['resourceType'] != 'AWS::EC2::Instance':
4040
return 'NOT_APPLICABLE'
4141

4242
instance_id = config_item['configuration']['instanceId']

0 commit comments

Comments
 (0)