Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def check_message(self, connector, host, secret_key, resource, parameters):
self.start_check(resource)
md = download_metadata(connector, host, secret_key, resource['id'])
if get_extractor_metadata(md, self.extractor_info['name']) and not self.overwrite:
self.log_skip(resource,"metadata indicates it was already processed")
return CheckMessage.ignore
return CheckMessage.download
def check_message(self, connector, host, secret_key, resource, parameters):
self.start_check(resource)
md = download_metadata(connector, host, secret_key, resource['id'])
if get_extractor_metadata(md, self.extractor_info['name']) and not self.overwrite:
self.log_skip(resource,"metadata indicates it was already processed")
return CheckMessage.ignore
return CheckMessage.download