diff options
author | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-12 13:24:31 +0100 |
---|---|---|
committer | Tiago Gomes <tiago.gomes@codethink.co.uk> | 2018-09-14 16:38:43 +0100 |
commit | 46cbd8896b24443aac1a616bbd62892ebe31a7c2 (patch) | |
tree | 510bd6e7556388abd559b954d1f45b115c462ff4 /buildstream/_artifactcache | |
parent | 32fad24fc02208e700891ec9867d0fd66f3242e4 (diff) | |
download | buildstream-46cbd8896b24443aac1a616bbd62892ebe31a7c2.tar.gz |
artifactcache: rename get_quota_exceeded()
Diffstat (limited to 'buildstream/_artifactcache')
-rw-r--r-- | buildstream/_artifactcache/artifactcache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/_artifactcache/artifactcache.py b/buildstream/_artifactcache/artifactcache.py index 45293e345..eb7759d83 100644 --- a/buildstream/_artifactcache/artifactcache.py +++ b/buildstream/_artifactcache/artifactcache.py @@ -267,7 +267,7 @@ class ArtifactCache(): "Please increase the cache-quota in {}." .format(self.context.config_origin or default_conf)) - if self.get_quota_exceeded(): + if self.has_quota_exceeded(): raise ArtifactError("Cache too full. Aborting.", detail=detail, reason="cache-too-full") @@ -354,14 +354,14 @@ class ArtifactCache(): self._cache_size = cache_size self._write_cache_size(self._cache_size) - # get_quota_exceeded() + # has_quota_exceeded() # # Checks if the current artifact cache size exceeds the quota. # # Returns: # (bool): True of the quota is exceeded # - def get_quota_exceeded(self): + def has_quota_exceeded(self): return self.get_cache_size() > self._cache_quota ################################################ |