socketserver take bytes

This commit is contained in:
Daan Hoogland 2021-02-22 15:25:14 +00:00
parent 1bbec8232c
commit 07cc2a57bb
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class MockedCloudStackServer(BaseHTTPRequestHandler):
self.end_headers()
json = "{\"listvirtualmachinesresponse\":{\"count\":1,\"virtualmachine\":[{\"id\":\"some-uuid\",\"name\":\"test-vm\",\"state\":\"%s\"}]}}" % state
self.wfile.write(json)
self.wfile.write(json.encode())
def log_message(self, format, *args):
return