Added delete object after read

Signed-off-by: m.malygina <m.malygina@yadro.com>
This commit is contained in:
m.malygina 2024-06-05 14:38:45 +03:00
parent a8eab4434b
commit 274d071964

View file

@ -26,7 +26,6 @@ const summary_json = __ENV.SUMMARY_JSON || '/tmp/summary.json';
const no_verify_ssl = __ENV.NO_VERIFY_SSL || 'true';
const delete_after_read = __ENV.DELETE_AFTER_READ || 'true';
console.log(`delete_after_readt: ${delete_after_read}`)
const connection_args = {
no_verify_ssl : no_verify_ssl
@ -227,7 +226,7 @@ export function delete_object(obj) {
return;
} else {
log.withFields({bucket : obj.s3_bucket, key : obj.s3_key})
.error(resp.success);
.info("deleted successfully");
}
obj_registry.deleteObject(obj.id);