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.
1 parent 499bebd commit db6e490Copy full SHA for db6e490
splunklib/client.py
@@ -493,9 +493,9 @@ def restart(self, timeout=None):
493
:param timeout: A timeout period, in seconds.
494
:type timeout: ``integer``
495
"""
496
-
+ msg = {"value":"Restart requested by " + self.username + "via the Splunk SDK for Python"}
497
# This message will be deleted once the server actually restarts.
498
- self.messages.create(name="restart_required", **{"value":self.username})
+ self.messages.create(name="restart_required", **msg)
499
result = self.post("server/control/restart")
500
if timeout is None:
501
return result
0 commit comments