summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJürg Billeter <j@bitron.ch>2019-09-19 12:17:03 +0200
committerJürg Billeter <j@bitron.ch>2019-09-19 14:20:21 +0200
commitb7578dddc0d2f216a1898e94e19682e40e52d1db (patch)
tree851e953ba2d0e7d60d58b1658fd5733b3a27ea88
parent9453a0144fd6225fbc9f970ba7d68aa233bebb66 (diff)
downloadbuildstream-b7578dddc0d2f216a1898e94e19682e40e52d1db.tar.gz
casremote.py: Drop Status request
The push status check is implemented by BuildStream artifact and source services. It's not part of the CAS protocol.
-rw-r--r--src/buildstream/_cas/casremote.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/buildstream/_cas/casremote.py b/src/buildstream/_cas/casremote.py
index 43e215c63..b1266a897 100644
--- a/src/buildstream/_cas/casremote.py
+++ b/src/buildstream/_cas/casremote.py
@@ -95,24 +95,6 @@ class CASRemote(BaseRemote):
response = local_cas.GetInstanceNameForRemote(request)
self.local_cas_instance_name = response.instance_name
- # _check():
- #
- # Check if this remote provides everything required for the
- # particular kind of remote. This is expected to be called as part
- # of check(), and must be called in a non-main process.
- #
- # Returns:
- # (str|None): An error message, or None if no error message.
- #
- def _check(self):
- request = buildstream_pb2.StatusRequest()
- response = self.ref_storage.Status(request)
-
- if self.spec.push and not response.allow_updates:
- return 'CAS server does not allow push'
-
- return None
-
# _check_support():
#
# Figure out if a remote server supports a given method based on