summaryrefslogtreecommitdiff
path: root/src/buildstream/_scheduler/jobs/cachesizejob.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/buildstream/_scheduler/jobs/cachesizejob.py')
-rw-r--r--src/buildstream/_scheduler/jobs/cachesizejob.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_scheduler/jobs/cachesizejob.py b/src/buildstream/_scheduler/jobs/cachesizejob.py
index ed1cc4131..f36c30190 100644
--- a/src/buildstream/_scheduler/jobs/cachesizejob.py
+++ b/src/buildstream/_scheduler/jobs/cachesizejob.py
@@ -28,7 +28,7 @@ class CacheSizeJob(Job):
self._casquota = context.get_casquota()
def parent_complete(self, status, result):
- if status == JobStatus.OK:
+ if status is JobStatus.OK:
self._casquota.set_cache_size(result)
if self._complete_cb: