summaryrefslogtreecommitdiff
path: root/jstests/noPassthrough/libs/configExpand/rest_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/noPassthrough/libs/configExpand/rest_server.py')
-rw-r--r--jstests/noPassthrough/libs/configExpand/rest_server.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/jstests/noPassthrough/libs/configExpand/rest_server.py b/jstests/noPassthrough/libs/configExpand/rest_server.py
index 0a6e811b665..9672eaf6341 100644
--- a/jstests/noPassthrough/libs/configExpand/rest_server.py
+++ b/jstests/noPassthrough/libs/configExpand/rest_server.py
@@ -7,7 +7,6 @@ import json
import logging
import time
import urllib.parse
-import yaml
class ConfigExpandRestHandler(http.server.BaseHTTPRequestHandler):
"""
@@ -39,7 +38,7 @@ class ConfigExpandRestHandler(http.server.BaseHTTPRequestHandler):
self.send_response(code)
self.send_header('content-type', 'text/yaml')
self.end_headers()
- self.wfile.write(yaml.dump(json.loads(query['json'][0]), default_flow_style=False).encode())
+ self.wfile.write(query['yaml'][0].encode())
return
self.send_response(http.HTTPStatus.NOT_FOUND)