summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2018-12-13 00:46:43 +0300
committerDevaev Maxim <[email protected]>2018-12-13 00:46:43 +0300
commitd92e2e2d1ba844e6acfcc9629c7b5f4781eac9b3 (patch)
tree81a761ec5fcae800201ca1bb3db0bf783cd42b1a
parent014884f9ace5364cf8ebe70d558d1ad6b82867b2 (diff)
lint fix
-rw-r--r--kvmd/apps/kvmd/server.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvmd/apps/kvmd/server.py b/kvmd/apps/kvmd/server.py
index 5a0f0758..d4e3fc32 100644
--- a/kvmd/apps/kvmd/server.py
+++ b/kvmd/apps/kvmd/server.py
@@ -47,7 +47,7 @@ def _system_task(method: Callable) -> Callable:
def _json(result: Optional[Dict]=None, status: int=200) -> aiohttp.web.Response:
return aiohttp.web.Response(
text=json.dumps({
- "ok": (True if status == 200 else False),
+ "ok": (status == 200),
"result": (result or {}),
}, sort_keys=True, indent=4),
status=status,