Skip to content

Commit 256a2f2

Browse files
author
David Noble
committed
Fixed a bug and removed some unused imports
1 parent 1377b0b commit 256a2f2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

splunklib/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,7 +980,7 @@ def disable(self):
980980
"""Disables the entity at this endpoint."""
981981
self.post("disable")
982982
if self.service.restart_required:
983-
self.restartSplunk()
983+
self.service.restart(120)
984984
return self
985985

986986
def enable(self):

tests/test_index.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,14 @@
1414
# License for the specific language governing permissions and limitations
1515
# under the License.
1616

17-
from os import path
18-
import time
1917
import testlib
18+
import logging
19+
2020
try:
2121
import unittest
2222
except ImportError:
2323
import unittest2 as unittest
2424

25-
import splunklib.client as client
26-
27-
import logging
2825

2926
class IndexTest(testlib.SDKTestCase):
3027
def setUp(self):

0 commit comments

Comments
 (0)