Skip to content

Commit 67f3a58

Browse files
Fixed claenup method for Hyperdisk
1 parent de940dc commit 67f3a58

File tree

1 file changed

+1
-2
lines changed
  • compute/cloud-client/src/test/java/compute

1 file changed

+1
-2
lines changed

compute/cloud-client/src/test/java/compute/Util.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,7 @@ public static void cleanUpExistingSnapshots(String prefixToDelete, String projec
223223
throws IOException, ExecutionException, InterruptedException, TimeoutException {
224224
try (SnapshotsClient snapshotsClient = SnapshotsClient.create()) {
225225
for (Snapshot snapshot : snapshotsClient.list(projectId).iterateAll()) {
226-
if (containPrefixToDelete(snapshot, prefixToDelete)
227-
&& isCreatedBeforeThresholdTime(snapshot.getCreationTimestamp())) {
226+
if (isCreatedBeforeThresholdTime(snapshot.getCreationTimestamp())) {
228227
DeleteSnapshot.deleteSnapshot(projectId, snapshot.getName());
229228
}
230229
}

0 commit comments

Comments
 (0)