Skip to content

Commit f4f6047

Browse files
author
Shakeel Mohamed
committed
Removed comment; restart Splunk via post now
1 parent d17f63a commit f4f6047

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

splunklib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ def restart(self, timeout=None):
490490
:param timeout: A timeout period, in seconds.
491491
:type timeout: ``integer``
492492
"""
493-
result = self.get("server/control/restart")
493+
result = self.post("server/control/restart")
494494
if timeout is None: return result
495495
start = datetime.now()
496496
diff = timedelta(seconds=10)

splunklib/modularinput/argument.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def add_to_document(self, parent):
7373
and sets up its subelements with their respective text.
7474
7575
:param parent: An ``ET.Element`` to be the parent of a new <arg> subelement
76-
:returns: An ``ET.Element`` object representing this argument. #TODO: might not need to return here..
76+
:returns: An ``ET.Element`` object representing this argument.
7777
"""
7878
arg = ET.SubElement(parent, "arg")
7979
arg.set("name", self.name)

0 commit comments

Comments
 (0)