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 44415b4 commit f5ffb67Copy full SHA for f5ffb67
splunklib/binding.py
@@ -499,13 +499,13 @@ def get_cookies(self):
499
return self.http._cookies
500
501
def has_cookies(self):
502
- """Returns true if the ``HttpLib`` member of this instance has at least
503
- one cookie stored.
+ """Returns true if the ``HttpLib`` member of this instance has auth token stored.
504
505
- :return: ``True`` if there is at least one cookie, else ``False``
+ :return: ``True`` if there is auth token present, else ``False``
506
:rtype: ``bool``
507
"""
508
- return len(self.get_cookies()) > 0
+ auth_token_key = "splunkd_8089"
+ return auth_token_key in self.get_cookies().keys()
509
510
# Shared per-context request headers
511
@property
0 commit comments