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 3eda492 + 87d76de commit baf19dcCopy full SHA for baf19dc
splunklib/client.py
@@ -604,9 +604,7 @@ def restart(self, timeout=None):
604
:type timeout: ``integer``
605
"""
606
msg = {
607
- "value": "Restart requested by "
608
- + self.username
609
- + "via the Splunk SDK for Python"
+ "value": f"Restart requested by {self.username} via the Splunk SDK for Python"
610
}
611
# This message will be deleted once the server actually restarts.
612
self.messages.create(name="restart_required", **msg)
0 commit comments