Splunk Dev

How to correct Splunk SDK Python syntax error?

erick_costa
Path Finder

Python 2.4.3
Splunk 6

Error:

/splunklib/client.py", line 196
return entries if isinstance(entries, list) else [entries]
^
SyntaxError: invalid syntax

What should I do?

Tags (3)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust

The if expression was introduced in Python 2.5.

Get Updates on the Splunk Community!

Enhance Your Splunk App Development: New Tools & Support

UCC FrameworkAdd-on Builder has been around for quite some time. It helps build Splunk apps faster, but it ...

Prove Your Splunk Prowess at .conf25—No Prereqs Required!

Your Next Big Security Credential: No Prerequisites Needed We know you’ve got the skills, and now, earning the ...

Splunk Observability Cloud's AI Assistant in Action Series: Observability as Code

This is the sixth post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...