diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-11-15 12:45:13 +0100 |
---|---|---|
committer | Valentin David <valentin.david@codethink.co.uk> | 2018-11-19 14:11:56 +0100 |
commit | 300011b262524ca9306b81810eddc05ebe3abcb6 (patch) | |
tree | 85e11434ee1ad106fa2b6cb89f29d2de6dc6bca9 | |
parent | af6b0f5b70b623095065b58e1a1130ecf148b645 (diff) | |
download | buildstream-300011b262524ca9306b81810eddc05ebe3abcb6.tar.gz |
Fix type error in RPC messages
-rw-r--r-- | buildstream/_artifactcache/casserver.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildstream/_artifactcache/casserver.py b/buildstream/_artifactcache/casserver.py index 4d352651d..a1432d6fd 100644 --- a/buildstream/_artifactcache/casserver.py +++ b/buildstream/_artifactcache/casserver.py @@ -254,12 +254,12 @@ class _ContentAddressableStorageServicer(remote_execution_pb2_grpc.ContentAddres try: with open(self.cas.objpath(digest), 'rb') as f: if os.fstat(f.fileno()).st_size != digest.size_bytes: - blob_response.status.code = grpc.StatusCode.NOT_FOUND + blob_response.status.code = grpc.StatusCode.NOT_FOUND.value[0] continue blob_response.data = f.read(digest.size_bytes) except FileNotFoundError: - blob_response.status.code = grpc.StatusCode.NOT_FOUND + blob_response.status.code = grpc.StatusCode.NOT_FOUND.value[0] return response |