We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 90c70ff + 9c3f18c commit dd3fbd4Copy full SHA for dd3fbd4
pytest_splunk_addon/helmut/connector/rest.py
@@ -14,7 +14,7 @@
14
import xml.etree.ElementTree as et
15
from xml.dom.minidom import parseString
16
import time
17
-
+import six
18
19
class RESTConnector(Connector):
20
"""
@@ -279,7 +279,7 @@ def login(self):
279
self.logger.warn(msg)
280
raise AuthenticationError(msg)
281
282
- root = et.fromstring(str(content))
+ root = et.fromstring(six.ensure_text(content, "utf-8"))
283
self.sessionkey = root[0].text
284
if not self._service.credentials.credentials:
285
self._service.add_credentials(self._username, self._password)
0 commit comments