Skip to content

Commit a570ddb

Browse files
author
Shakeel Mohamed
committed
Finish cookie auth refactor in 1 place
1 parent 7db4adf commit a570ddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

splunklib/binding.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def f():
265265
@wraps(request_fun)
266266
def wrapper(self, *args, **kwargs):
267267
if self.token is _NoAuthenticationToken and \
268-
len(self.get_cookies()) < 1:
268+
not self.has_cookies():
269269
# Not yet logged in.
270270
if self.autologin and self.username and self.password:
271271
# This will throw an uncaught

0 commit comments

Comments
 (0)