Skip to content

Commit c860c14

Browse files
artemrysArtem Rys
authored andcommitted
chore: semgrep and misspell fixes
1 parent cf158cf commit c860c14

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pytest_splunk_addon/helmut/connector/rest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
import httplib2
2727
from pytest_splunk_addon.helmut.exceptions import AuthenticationError
2828
import json
29-
import xml.etree.ElementTree as et
29+
from defusedxml import cElementTree as ET
3030
from xml.dom.minidom import parseString
3131
import time
3232
import six
@@ -299,7 +299,7 @@ def login(self):
299299
self.logger.warn(msg)
300300
raise AuthenticationError(msg)
301301

302-
root = et.fromstring(six.ensure_text(content, "utf-8"))
302+
root = ET.fromstring(six.ensure_text(content, "utf-8"))
303303
self.sessionkey = root[0].text
304304
if not self._service.credentials.credentials:
305305
self._service.add_credentials(self._username, self._password)

pytest_splunk_addon/helmut/manager/users/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def create_user(self, username, password, roles, **kwargs):
6767
@type password: String
6868
@param roles: The role(s) of the new user.
6969
@type roles: String or list
70-
@param kwargs: The arugments the new user.
70+
@param kwargs: The arguments the new user.
7171
@type kwargs: kwargs
7272
"""
7373
pass

pytest_splunk_addon/helmut/splunk/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def _notify_listeners_of_splunk_start(self):
481481

482482
def get_rip(self, owner=None, app=None, username=None, password=None):
483483
"""
484-
Create a RESTInPeace under certian user and app namespace
484+
Create a RESTInPeace under certain user and app namespace
485485
486486
:param owner: owner namespace, default to admin
487487
:type owner: str

0 commit comments

Comments
 (0)