Skip to content

Commit

Permalink
fix stix ioc fetch failure scenario
Browse files Browse the repository at this point in the history
Signed-off-by: Surya Sashank Nistala <snistala@amazon.com>
  • Loading branch information
eirsep committed Jul 2, 2024
1 parent d88b9fd commit b7a1a19
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public void downloadAndIndexIOCs(SATIFSourceConfig saTifSourceConfig, ActionList
} catch (Exception e) {
log.error("Failed to download IOCs.", e);
listener.onFailure(e);
return;
}

// TODO consider passing listener into the flush IOC function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void createIocAndTIFSourceConfig(
listener.onFailure(e);
}, ex -> {
log.error("Failed to delete threat intel source config [{}]", indexSaTifSourceConfigResponse.getId());
listener.onFailure(ex);
listener.onFailure(e);
}
));
})
Expand Down

0 comments on commit b7a1a19

Please sign in to comment.