From 07cc2a57bb65548ae6ca843d7063117209086b50 Mon Sep 17 00:00:00 2001 From: Daan Hoogland Date: Mon, 22 Feb 2021 15:25:14 +0000 Subject: [PATCH] socketserver take bytes --- test/integration/smoke/test_outofbandmanagement_nestedplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/smoke/test_outofbandmanagement_nestedplugin.py b/test/integration/smoke/test_outofbandmanagement_nestedplugin.py index bb8f618e471..3df090a950c 100644 --- a/test/integration/smoke/test_outofbandmanagement_nestedplugin.py +++ b/test/integration/smoke/test_outofbandmanagement_nestedplugin.py @@ -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