Skip to content

Commit dd3fbd4

Browse files
Merge pull request #211 from splunk/update-helmut
Updated helmut
2 parents 90c70ff + 9c3f18c commit dd3fbd4

File tree

1 file changed

+2
-2
lines changed
  • pytest_splunk_addon/helmut/connector

1 file changed

+2
-2
lines changed

pytest_splunk_addon/helmut/connector/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
import xml.etree.ElementTree as et
1515
from xml.dom.minidom import parseString
1616
import time
17-
17+
import six
1818

1919
class RESTConnector(Connector):
2020
"""
@@ -279,7 +279,7 @@ def login(self):
279279
self.logger.warn(msg)
280280
raise AuthenticationError(msg)
281281

282-
root = et.fromstring(str(content))
282+
root = et.fromstring(six.ensure_text(content, "utf-8"))
283283
self.sessionkey = root[0].text
284284
if not self._service.credentials.credentials:
285285
self._service.add_credentials(self._username, self._password)

0 commit comments

Comments
 (0)