mirror of https://github.com/apache/cloudstack.git
socketserver take bytes
This commit is contained in:
parent
1bbec8232c
commit
07cc2a57bb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue