mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
py3: Remove comparison >=2 of debnug log level
We have only one debug log level and it causes issues with py3.
...
File "/usr/lib/python3.5/site-packages/ipaserver/rpcserver.py", line 490, in marshal
response, version, pretty_print=self.api.env.debug >= 2
TypeError: unorderable types: str() >= int()
https://pagure.io/freeipa/issue/4985
Reviewed-By: Stanislav Laznicka <slaznick@redhat.com>
This commit is contained in:
@@ -487,7 +487,7 @@ class jsonserver(WSGIExecutioner, HTTP_Status):
|
||||
version=unicode(VERSION),
|
||||
)
|
||||
dump = json_encode_binary(
|
||||
response, version, pretty_print=self.api.env.debug >= 2
|
||||
response, version, pretty_print=self.api.env.debug
|
||||
)
|
||||
return dump.encode('utf-8')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user