Skip to content

Commit

Permalink
Fix bugs in cloudbridge objectstore.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed May 6, 2024
1 parent 51f8ea8 commit cead016
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/galaxy/objectstore/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def _create(self, obj, **kwargs):

def _empty(self, obj, **kwargs):
if self._exists(obj, **kwargs):
return bool(self._size(obj, **kwargs) > 0)
return bool(self._size(obj, **kwargs) == 0)
else:
raise ObjectNotFound(f"objectstore.empty, object does not exist: {obj}, kwargs: {kwargs}")

Expand Down Expand Up @@ -678,7 +678,7 @@ def _get_object_url(self, obj, **kwargs):
log.exception("Trouble generating URL for dataset '%s'", rel_path)
return None

def _get_store_usage_percent(self):
def _get_store_usage_percent(self, obj):
return 0.0

def shutdown(self):
Expand Down

0 comments on commit cead016

Please sign in to comment.