in rdklib/util/service.py [0:0]
def is_applicable_status(configuration_item, event):
status = configuration_item['configurationItemStatus']
event_left_scope = event['eventLeftScope']
if status in ('ResourceDeleted', 'ResourceDeletedNotRecorded', 'ResourceNotRecorded'):
print("Resource Deleted, setting Compliance Status to NOT_APPLICABLE.")
return status in ('OK', 'ResourceDiscovered') and not event_left_scope