scylladb / scylla-ccm

Cassandra Cluster Manager, modified for Scylla
Apache License 2.0
20 stars 60 forks source link

scylla_node: encode stdout and stderr if not text #554

Closed tchaikov closed 5 months ago

tchaikov commented 5 months ago

if there are no sstables, and we expect bytes as the output, we should encode the encoded json into bytes before returning it. otherwise we'd have exception like:

AttributeError: 'str' object has no attribute 'decode'. Did you mean: 'encode'?

when trying to decode the returned stdout.