fix: add back missing not (#1687)

This commit is contained in:
Andrew Ferlitsch
2023-04-05 22:48:40 +00:00
committed by GitHub
parent 1e226a3419
commit c8f7b910f2
@@ -195,7 +195,7 @@ class BucketCleanupManager(ResourceCleanupManager):
def is_deletable(self, resource: Any) -> bool:
time_difference = self.get_seconds_since_modification(resource)
if self.resource_name(resource).startswith('your-bucket-name'):
if not self.resource_name(resource).startswith('your-bucket-name'):
print(f"Skipping '{resource}' not a Vertex AI notebook bucket")
return False