splunk-sdk-python icon indicating copy to clipboard operation
splunk-sdk-python copied to clipboard

Job#setttl should return self?

Open ansman opened this issue 15 years ago • 2 comments

Seems like most non result methods returns self (I'm assuming for chaining purposes) but setttl does not:

def setttl(self, value):
    self.post("control", action="setttl", ttl=value)`

ansman avatar Nov 01 '11 03:11 ansman

Yes, these "actions" return self in order to enable a "fluent" style of coding (aka chaining) and this one should also return self.

blovering avatar Nov 01 '11 16:11 blovering

Fixed in the develop branch.

itay avatar Nov 01 '11 20:11 itay