Skip to content

Commit 86918c4

Browse files
author
Frederick Ross
committed
Renamed _run_method to _run_action everywhere.
1 parent df3d9c2 commit 86918c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

splunklib/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -873,11 +873,11 @@ def _load_state(self, response):
873873
entry = self._load_atom_entry(response)
874874
return _parse_atom_entry(entry)
875875

876-
def _run_method(self, path_segment, **kwargs):
876+
def _run_action(self, path_segment, **kwargs):
877877
"""Run a method and return the content Record from the returned XML.
878878
879879
A method is a relative path from an Entity that is not itself
880-
an Entity. _run_method assumes that the returned XML is an
880+
an Entity. _run_action assumes that the returned XML is an
881881
Atom field containing one Entry, and the contents of Entry is
882882
what should be the return value. This is right in enough cases
883883
to make this method useful.
@@ -3058,7 +3058,7 @@ def suppressed(self):
30583058
:return: The number of seconds.
30593059
:rtype: ``integer``
30603060
"""
3061-
r = self._run_method("suppress")
3061+
r = self._run_action("suppress")
30623062
if r.suppressed == "1":
30633063
return int(r.expiration)
30643064
else:
@@ -3349,11 +3349,11 @@ def setupInfo(self):
33493349

33503350
def package(self):
33513351
""" Creates a compressed package of the app for archiving."""
3352-
return self._run_method("package")
3352+
return self._run_action("package")
33533353

33543354
def updateInfo(self):
33553355
"""Returns any update information that is available for the app."""
3356-
return self._run_method("update")
3356+
return self._run_action("update")
33573357

33583358

33593359

0 commit comments

Comments
 (0)