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 1377b0b commit 256a2f2Copy full SHA for 256a2f2
splunklib/client.py
@@ -980,7 +980,7 @@ def disable(self):
980
"""Disables the entity at this endpoint."""
981
self.post("disable")
982
if self.service.restart_required:
983
- self.restartSplunk()
+ self.service.restart(120)
984
return self
985
986
def enable(self):
tests/test_index.py
@@ -14,17 +14,14 @@
14
# License for the specific language governing permissions and limitations
15
# under the License.
16
17
-from os import path
18
-import time
19
import testlib
+import logging
+
20
try:
21
import unittest
22
except ImportError:
23
import unittest2 as unittest
24
25
-import splunklib.client as client
26
-
27
-import logging
28
29
class IndexTest(testlib.SDKTestCase):
30
def setUp(self):
0 commit comments