Skip to content

Commit

Permalink
Only deleting resource created by ITs (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmankika-aws authored Jul 6, 2023
1 parent 8d1ee6b commit c3883f5
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ public void deleteResource(String resourceName) throws Exception {
public void deleteAllResource() throws Exception {
final List<String> resourceNames = getAllResourceNames();
for (String resourceName : resourceNames) {
deleteResource(resourceName);
// Delete all resources that have prefix "KCLRelease"
if (resourceName.startsWith("KCLRelease")) {
deleteResource(resourceName);
}
}
}
}

0 comments on commit c3883f5

Please sign in to comment.