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:
Martin Basti
2017-06-19 19:11:10 +02:00
parent d5fc0ddd87
commit 8416d5772d
3 changed files with 3 additions and 9 deletions

View File

@@ -22,7 +22,7 @@ class test_session_storage(object):
# os.environ['KRB5CCNAME'] = 'FILE:%s/ccache' % tmpdir
self.principal = 'admin'
self.key = 'X-IPA-test-session-storage'
self.data = 'Test Data'
self.data = b'Test Data'
def test_01(self):
session_storage.store_data(self.principal, self.key, self.data)